import type { GeneratedEtsLibFile } from "../../types/generated";

export const FILE: GeneratedEtsLibFile = {
  path: 'ets/api/@ohos.security.cert.d.ts',
  content: "/*\n * Copyright (c) 2022-2025 Huawei Device Co., Ltd.\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * @file\n * @kit DeviceCertificateKit\n */\nimport type { AsyncCallback } from './@ohos.base';\nimport cryptoFramework from './@ohos.security.cryptoFramework';\n/**\n * Provides a series of capabilities related to certificates,\n * which supports parsing, verification, and output of certificates, extensions, and CRLs.\n *\n * @namespace cert\n * @syscap SystemCapability.Security.Cert\n * @since 9\n */\n/**\n * Provides a series of capabilities related to certificates,\n * which supports parsing, verification, and output of certificates, extensions, and CRLs.\n *\n * @namespace cert\n * @syscap SystemCapability.Security.Cert\n * @crossplatform\n * @since 11\n */\n/**\n * Provides a series of capabilities related to certificates,\n * which supports parsing, verification, and output of certificates, extensions, and CRLs.\n *\n * @namespace cert\n * @syscap SystemCapability.Security.Cert\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare namespace cert {\n    /**\n     * Enum for result code\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Security.Cert\n     * @since 9\n     */\n    /**\n     * Enum for result code\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Enum for result code\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    enum CertResult {\n        /**\n         * Indicates that input parameters is invalid.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         */\n        /**\n         * Indicates that input parameters is invalid.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Indicates that input parameters is invalid.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        INVALID_PARAMS = 401,\n        /**\n         * Indicates that function or algorithm is not supported.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         */\n        /**\n         * Indicates that function or algorithm is not supported.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Indicates that function or algorithm is not supported.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        NOT_SUPPORT = 801,\n        /**\n         * Indicates the memory malloc failed.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         */\n        /**\n         * Indicates the memory malloc failed.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Indicates the memory malloc failed.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        ERR_OUT_OF_MEMORY = 19020001,\n        /**\n         * Indicates that runtime error.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         */\n        /**\n         * Indicates that runtime error.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Indicates that runtime error.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        ERR_RUNTIME_ERROR = 19020002,\n        /**\n         * Indicates that parameter check failed.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 20\n         */\n        ERR_PARAMETER_CHECK_FAILED = 19020003,\n        /**\n         * Indicates the crypto operation error.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         */\n        /**\n         * Indicates the crypto operation error.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Indicates the crypto operation error.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        ERR_CRYPTO_OPERATION = 19030001,\n        /**\n         * Indicates that the certificate signature verification failed.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         */\n        /**\n         * Indicates that the certificate signature verification failed.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Indicates that the certificate signature verification failed.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        ERR_CERT_SIGNATURE_FAILURE = 19030002,\n        /**\n         * Indicates that the certificate has not taken effect.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         */\n        /**\n         * Indicates that the certificate has not taken effect.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Indicates that the certificate has not taken effect.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        ERR_CERT_NOT_YET_VALID = 19030003,\n        /**\n         * Indicates that the certificate has expired.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         */\n        /**\n         * Indicates that the certificate has expired.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Indicates that the certificate has expired.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        ERR_CERT_HAS_EXPIRED = 19030004,\n        /**\n         * Indicates a failure to obtain the certificate issuer.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         */\n        /**\n         * Indicates a failure to obtain the certificate issuer.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Indicates a failure to obtain the certificate issuer.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY = 19030005,\n        /**\n         * The key cannot be used for signing a certificate.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         */\n        /**\n         * The key cannot be used for signing a certificate.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * The key cannot be used for signing a certificate.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        ERR_KEYUSAGE_NO_CERTSIGN = 19030006,\n        /**\n         * The key cannot be used for digital signature.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         */\n        /**\n         * The key cannot be used for digital signature.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * The key cannot be used for digital signature.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        ERR_KEYUSAGE_NO_DIGITAL_SIGNATURE = 19030007,\n        /**\n         * The password may be wrong.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        ERR_MAYBE_WRONG_PASSWORD = 19030008\n    }\n    /**\n     * Provides the data blob type.\n     *\n     * @typedef DataBlob\n     * @syscap SystemCapability.Security.Cert\n     * @since 9\n     */\n    /**\n     * Provides the data blob type.\n     *\n     * @typedef DataBlob\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Provides the data blob type.\n     *\n     * @typedef DataBlob\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    interface DataBlob {\n        /**\n         * Indicates the content of data blob.\n         *\n         * @type { Uint8Array }\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         */\n        /**\n         * Indicates the content of data blob.\n         *\n         * @type { Uint8Array }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Indicates the content of data blob.\n         *\n         * @type { Uint8Array }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        data: Uint8Array;\n    }\n    /**\n     * Provides the data array type.\n     *\n     * @typedef DataArray\n     * @syscap SystemCapability.Security.Cert\n     * @since 9\n     */\n    /**\n     * Provides the data array type.\n     *\n     * @typedef DataArray\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Provides the data array type.\n     *\n     * @typedef DataArray\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    interface DataArray {\n        /**\n         * Indicates the content of data array.\n         *\n         * @type { Array<Uint8Array> }\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         */\n        /**\n         * Indicates the content of data array.\n         *\n         * @type { Array<Uint8Array> }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Indicates the content of data array.\n         *\n         * @type { Array<Uint8Array> }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        data: Array<Uint8Array>;\n    }\n    /**\n     * Enum for supported cert encoding format.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Security.Cert\n     * @since 9\n     */\n    /**\n     * Enum for supported cert encoding format.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Enum for supported cert encoding format.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    enum EncodingFormat {\n        /**\n         * The value of cert DER format.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         */\n        /**\n         * The value of cert DER format.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * The value of cert DER format.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        FORMAT_DER = 0,\n        /**\n         * The value of cert PEM format.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         */\n        /**\n         * The value of cert PEM format.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * The value of cert PEM format.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        FORMAT_PEM = 1,\n        /**\n         * The value of cert chain PKCS7 format.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * The value of cert chain PKCS7 format.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        FORMAT_PKCS7 = 2\n    }\n    /**\n     * Enum for the certificate item type.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Security.Cert\n     * @since 10\n     */\n    /**\n     * Enum for the certificate item type.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Enum for the certificate item type.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    enum CertItemType {\n        /**\n         * Indicates to get certificate TBS(to be signed) value.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @since 10\n         */\n        /**\n         * Indicates to get certificate TBS(to be signed) value.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Indicates to get certificate TBS(to be signed) value.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        CERT_ITEM_TYPE_TBS = 0,\n        /**\n         * Indicates to get certificate public key.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @since 10\n         */\n        /**\n         * Indicates to get certificate public key.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Indicates to get certificate public key.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        CERT_ITEM_TYPE_PUBLIC_KEY = 1,\n        /**\n         * Indicates to get certificate issuer unique id value.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @since 10\n         */\n        /**\n         * Indicates to get certificate issuer unique id value.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Indicates to get certificate issuer unique id value.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        CERT_ITEM_TYPE_ISSUER_UNIQUE_ID = 2,\n        /**\n         * Indicates to get certificate subject unique id value.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @since 10\n         */\n        /**\n         * Indicates to get certificate subject unique id value.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Indicates to get certificate subject unique id value.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        CERT_ITEM_TYPE_SUBJECT_UNIQUE_ID = 3,\n        /**\n         * Indicates to get certificate extensions value.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @since 10\n         */\n        /**\n         * Indicates to get certificate extensions value.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Indicates to get certificate extensions value.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        CERT_ITEM_TYPE_EXTENSIONS = 4\n    }\n    /**\n     * Enumerates for the certificate extension object identifier (OID) types.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Security.Cert\n     * @since 10\n     */\n    /**\n     * Enumerates for the certificate extension object identifier (OID) types.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Enumerates for the certificate extension object identifier (OID) types.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    enum ExtensionOidType {\n        /**\n         * Indicates to obtain all types of OIDs, including critical and uncritical types.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @since 10\n         */\n        /**\n         * Indicates to obtain all types of OIDs, including critical and uncritical types.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Indicates to obtain all types of OIDs, including critical and uncritical types.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        EXTENSION_OID_TYPE_ALL = 0,\n        /**\n         * Indicates to obtain OIDs of the critical type.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @since 10\n         */\n        /**\n         * Indicates to obtain OIDs of the critical type.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Indicates to obtain OIDs of the critical type.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        EXTENSION_OID_TYPE_CRITICAL = 1,\n        /**\n         * Indicates to obtain OIDs of the uncritical type.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @since 10\n         */\n        /**\n         * Indicates to obtain OIDs of the uncritical type.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Indicates to obtain OIDs of the uncritical type.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        EXTENSION_OID_TYPE_UNCRITICAL = 2\n    }\n    /**\n     * Enum for the certificate extension entry type.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Security.Cert\n     * @since 10\n     */\n    /**\n     * Enum for the certificate extension entry type.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Enum for the certificate extension entry type.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    enum ExtensionEntryType {\n        /**\n         * Indicates to get extension entry.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @since 10\n         */\n        /**\n         * Indicates to get extension entry.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Indicates to get extension entry.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        EXTENSION_ENTRY_TYPE_ENTRY = 0,\n        /**\n         * Indicates to get extension entry critical.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @since 10\n         */\n        /**\n         * Indicates to get extension entry critical.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Indicates to get extension entry critical.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        EXTENSION_ENTRY_TYPE_ENTRY_CRITICAL = 1,\n        /**\n         * Indicates to get extension entry value.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @since 10\n         */\n        /**\n         * Indicates to get extension entry value.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Indicates to get extension entry value.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        EXTENSION_ENTRY_TYPE_ENTRY_VALUE = 2\n    }\n    /**\n     * Provides the cert encoding blob type.\n     *\n     * @typedef EncodingBlob\n     * @syscap SystemCapability.Security.Cert\n     * @since 9\n     */\n    /**\n     * Provides the cert encoding blob type.\n     *\n     * @typedef EncodingBlob\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Provides the cert encoding blob type.\n     *\n     * @typedef EncodingBlob\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    interface EncodingBlob {\n        /**\n         * The data input.\n         *\n         * @type { Uint8Array }\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         */\n        /**\n         * The data input.\n         *\n         * @type { Uint8Array }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * The data input.\n         *\n         * @type { Uint8Array }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        data: Uint8Array;\n        /**\n         * The data encoding format.\n         *\n         * @type { EncodingFormat }\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         */\n        /**\n         * The data encoding format.\n         *\n         * @type { EncodingFormat }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * The data encoding format.\n         *\n         * @type { EncodingFormat }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        encodingFormat: EncodingFormat;\n    }\n    /**\n     * Provides the cert chain data type.\n     *\n     * @typedef CertChainData\n     * @syscap SystemCapability.Security.Cert\n     * @since 9\n     */\n    /**\n     * Provides the cert chain data type.\n     *\n     * @typedef CertChainData\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Provides the cert chain data type.\n     *\n     * @typedef CertChainData\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    interface CertChainData {\n        /**\n         * The data input.\n         *\n         * @type { Uint8Array }\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         */\n        /**\n         * The data input.\n         *\n         * @type { Uint8Array }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * The data input.\n         *\n         * @type { Uint8Array }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        data: Uint8Array;\n        /**\n         * The number of certs.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         */\n        /**\n         * The number of certs.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * The number of certs.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        count: number;\n        /**\n         * The data encoding format.\n         *\n         * @type { EncodingFormat }\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         */\n        /**\n         * The data encoding format.\n         *\n         * @type { EncodingFormat }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * The data encoding format.\n         *\n         * @type { EncodingFormat }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        encodingFormat: EncodingFormat;\n    }\n    /**\n     * Enum for Encoding type.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    enum EncodingType {\n        /**\n         * Indicates to utf8 type.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        ENCODING_UTF8 = 0\n    }\n    /**\n     * Provides the x509 cert type.\n     *\n     * @typedef X509Cert\n     * @syscap SystemCapability.Security.Cert\n     * @since 9\n     */\n    /**\n     * Provides the x509 cert type.\n     *\n     * @typedef X509Cert\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Provides the x509 cert type.\n     *\n     * @typedef X509Cert\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    interface X509Cert {\n        /**\n         * Verify the X509 cert.\n         *\n         * @param { cryptoFramework.PubKey } key - public key to verify cert.\n         * @param { AsyncCallback<void> } callback - the callback of verify.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         */\n        /**\n         * Verify the X509 cert.\n         *\n         * @param { cryptoFramework.PubKey } key - public key to verify cert.\n         * @param { AsyncCallback<void> } callback - the callback of verify.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Verify the X509 cert.\n         *\n         * @param { cryptoFramework.PubKey } key - public key to verify cert.\n         * @param { AsyncCallback<void> } callback - the callback of verify.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        verify(key: cryptoFramework.PubKey, callback: AsyncCallback<void>): void;\n        /**\n         * Verify the X509 cert.\n         *\n         * @param { cryptoFramework.PubKey } key - public key to verify cert.\n         * @returns { Promise<void> } the promise returned by the function.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         */\n        /**\n         * Verify the X509 cert.\n         *\n         * @param { cryptoFramework.PubKey } key - public key to verify cert.\n         * @returns { Promise<void> } the promise returned by the function.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Verify the X509 cert.\n         *\n         * @param { cryptoFramework.PubKey } key - public key to verify cert.\n         * @returns { Promise<void> } the promise returned by the function.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        verify(key: cryptoFramework.PubKey): Promise<void>;\n        /**\n         * Get X509 cert encoded data.\n         *\n         * @param { AsyncCallback<EncodingBlob> } callback - the callback of getEncoded.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types;\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         */\n        /**\n         * Get X509 cert encoded data.\n         *\n         * @param { AsyncCallback<EncodingBlob> } callback - the callback of getEncoded.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types;\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Get X509 cert encoded data.\n         *\n         * @param { AsyncCallback<EncodingBlob> } callback - the callback of getEncoded.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types;\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getEncoded(callback: AsyncCallback<EncodingBlob>): void;\n        /**\n         * Get X509 cert encoded data.\n         *\n         * @returns { Promise<EncodingBlob> } the promise of X509 cert encoded data.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         */\n        /**\n         * Get X509 cert encoded data.\n         *\n         * @returns { Promise<EncodingBlob> } the promise of X509 cert encoded data.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Get X509 cert encoded data.\n         *\n         * @returns { Promise<EncodingBlob> } the promise of X509 cert encoded data.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getEncoded(): Promise<EncodingBlob>;\n        /**\n         * Get X509 cert public key.\n         *\n         * @returns { cryptoFramework.PubKey } X509 cert pubKey.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         */\n        /**\n         * Get X509 cert public key.\n         *\n         * @returns { cryptoFramework.PubKey } X509 cert pubKey.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Get X509 cert public key.\n         *\n         * @returns { cryptoFramework.PubKey } X509 cert pubKey.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getPublicKey(): cryptoFramework.PubKey;\n        /**\n         * Check the X509 cert validity with date.\n         *\n         * @param { string } date - indicates the cert date.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @throws { BusinessError } 19030003 - the certificate has not taken effect.\n         * @throws { BusinessError } 19030004 - the certificate has expired.\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         */\n        /**\n         * Check the X509 cert validity with date.\n         *\n         * @param { string } date - indicates the cert date.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @throws { BusinessError } 19030003 - the certificate has not taken effect.\n         * @throws { BusinessError } 19030004 - the certificate has expired.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Check the X509 cert validity with date.\n         *\n         * @param { string } date - indicates the cert date.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @throws { BusinessError } 19030003 - the certificate has not taken effect.\n         * @throws { BusinessError } 19030004 - the certificate has expired.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        checkValidityWithDate(date: string): void;\n        /**\n         * Get X509 cert version.\n         *\n         * @returns { number } X509 cert version.\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         */\n        /**\n         * Get X509 cert version.\n         *\n         * @returns { number } X509 cert version.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Get X509 cert version.\n         *\n         * @returns { number } X509 cert version.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getVersion(): number;\n        /**\n         * Get X509 cert serial number.\n         *\n         * @returns { number } X509 cert serial number.\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         * @deprecated since 10\n         * @useinstead ohos.security.cert.X509Cert.getCertSerialNumber\n         */\n        getSerialNumber(): number;\n        /**\n         * Get X509 cert serial number.\n         *\n         * @returns { bigint } X509 cert serial number.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @syscap SystemCapability.Security.Cert\n         * @since 10\n         */\n        /**\n         * Get X509 cert serial number.\n         *\n         * @returns { bigint } X509 cert serial number.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Get X509 cert serial number.\n         *\n         * @returns { bigint } X509 cert serial number.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getCertSerialNumber(): bigint;\n        /**\n         * Get X509 cert issuer name.\n         *\n         * @returns { DataBlob } X509 cert issuer name.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         */\n        /**\n         * Get X509 cert issuer name.\n         *\n         * @returns { DataBlob } X509 cert issuer name.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Get X509 cert issuer name.\n         *\n         * @returns { DataBlob } X509 cert issuer name.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getIssuerName(): DataBlob;\n        /**\n         * Get X509 cert issuer name according to the encoding type.\n         *\n         * @param { EncodingType } encodingType indicates the encoding type.\n         * @returns { string } X509 cert issuer name.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19020003 - parameter check failed. Possible causes:\n         * <br>1. The value of encodingType is not in the EncodingType enumeration range.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 20\n         */\n        getIssuerName(encodingType: EncodingType): string;\n        /**\n         * Get X509 cert subject name.\n         *\n         * @returns { DataBlob } X509 cert subject name.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         */\n        /**\n         * Get X509 cert subject name.\n         *\n         * @returns { DataBlob } X509 cert subject name.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Get X509 cert subject name.\n         *\n         * @param { EncodingType } [encodingType] indicates the encoding type, if the encoding type parameter is not set,\n         *                                    the default ASCII encoding is used.\n         * @returns { DataBlob } X509 cert subject name.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Incorrect parameter types;\n         * <br>2. Parameter verification failed.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getSubjectName(encodingType?: EncodingType): DataBlob;\n        /**\n         * Get X509 cert not before time.\n         *\n         * @returns { string } X509 cert not before time.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         */\n        /**\n         * Get X509 cert not before time.\n         *\n         * @returns { string } X509 cert not before time.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Get X509 cert not before time.\n         *\n         * @returns { string } X509 cert not before time.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getNotBeforeTime(): string;\n        /**\n         * Get X509 cert not after time.\n         *\n         * @returns { string } X509 cert not after time.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         */\n        /**\n         * Get X509 cert not after time.\n         *\n         * @returns { string } X509 cert not after time.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Get X509 cert not after time.\n         *\n         * @returns { string } X509 cert not after time.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getNotAfterTime(): string;\n        /**\n         * Get X509 cert signature.\n         *\n         * @returns { DataBlob } X509 cert signature.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         */\n        /**\n         * Get X509 cert signature.\n         *\n         * @returns { DataBlob } X509 cert signature.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Get X509 cert signature.\n         *\n         * @returns { DataBlob } X509 cert signature.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getSignature(): DataBlob;\n        /**\n         * Get X509 cert signature's algorithm name.\n         *\n         * @returns { string } X509 cert signature's algorithm name.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         */\n        /**\n         * Get X509 cert signature's algorithm name.\n         *\n         * @returns { string } X509 cert signature's algorithm name.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Get X509 cert signature's algorithm name.\n         *\n         * @returns { string } X509 cert signature's algorithm name.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getSignatureAlgName(): string;\n        /**\n         * Get X509 cert signature's algorithm oid.\n         *\n         * @returns { string } X509 cert signature's algorithm oid.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         */\n        /**\n         * Get X509 cert signature's algorithm oid.\n         *\n         * @returns { string } X509 cert signature's algorithm oid.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Get X509 cert signature's algorithm oid.\n         *\n         * @returns { string } X509 cert signature's algorithm oid.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getSignatureAlgOid(): string;\n        /**\n         * Get X509 cert signature's algorithm name.\n         *\n         * @returns { DataBlob } X509 cert signature's algorithm name.\n         * @throws { BusinessError } 801 - this operation is not supported.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         */\n        /**\n         * Get X509 cert signature's algorithm name.\n         *\n         * @returns { DataBlob } X509 cert signature's algorithm name.\n         * @throws { BusinessError } 801 - this operation is not supported.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Get X509 cert signature's algorithm name.\n         *\n         * @returns { DataBlob } X509 cert signature's algorithm name.\n         * @throws { BusinessError } 801 - this operation is not supported.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getSignatureAlgParams(): DataBlob;\n        /**\n         * Get X509 cert key usage.\n         *\n         * @returns { DataBlob } X509 cert key usage.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         */\n        /**\n         * Get X509 cert key usage.\n         *\n         * @returns { DataBlob } X509 cert key usage.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Get X509 cert key usage.\n         *\n         * @returns { DataBlob } X509 cert key usage.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getKeyUsage(): DataBlob;\n        /**\n         * Get X509 cert extended key usage.\n         *\n         * @returns { DataArray } X509 cert extended key usage.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         */\n        /**\n         * Get X509 cert extended key usage.\n         *\n         * @returns { DataArray } X509 cert extended key usage.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Get X509 cert extended key usage.\n         *\n         * @returns { DataArray } X509 cert extended key usage.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getExtKeyUsage(): DataArray;\n        /**\n         * Get X509 cert basic constraints path len.\n         *\n         * @returns { number } X509 cert basic constraints path len.\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         */\n        /**\n         * Get X509 cert basic constraints path len.\n         *\n         * @returns { number } X509 cert basic constraints path len.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Get X509 cert basic constraints path len.\n         *\n         * @returns { number } X509 cert basic constraints path len.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getBasicConstraints(): number;\n        /**\n         * Get X509 cert subject alternative name.\n         *\n         * @returns { DataArray } X509 cert subject alternative name.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         */\n        /**\n         * Get X509 cert subject alternative name.\n         *\n         * @returns { DataArray } X509 cert subject alternative name.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Get X509 cert subject alternative name.\n         *\n         * @returns { DataArray } X509 cert subject alternative name.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getSubjectAltNames(): DataArray;\n        /**\n         * Get X509 cert issuer alternative name.\n         *\n         * @returns { DataArray } X509 cert issuer alternative name.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         */\n        /**\n         * Get X509 cert issuer alternative name.\n         *\n         * @returns { DataArray } X509 cert issuer alternative name.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Get X509 cert issuer alternative name.\n         *\n         * @returns { DataArray } X509 cert issuer alternative name.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getIssuerAltNames(): DataArray;\n        /**\n         * Get certificate item value.\n         *\n         * @param { CertItemType } itemType\n         * @returns { DataBlob } cert item value.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @since 10\n         */\n        /**\n         * Get certificate item value.\n         *\n         * @param { CertItemType } itemType\n         * @returns { DataBlob } cert item value.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Get certificate item value.\n         *\n         * @param { CertItemType } itemType\n         * @returns { DataBlob } cert item value.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getItem(itemType: CertItemType): DataBlob;\n        /**\n         * Check the X509 cert if match the parameters.\n         *\n         * @param { X509CertMatchParameters } param - indicate the match parameters.\n         * @returns { boolean } true - match X509Cert, false - not match.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Check the X509 cert if match the parameters.\n         *\n         * @param { X509CertMatchParameters } param - indicate the match parameters.\n         * @returns { boolean } true - match X509Cert, false - not match.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        match(param: X509CertMatchParameters): boolean;\n        /**\n         * Obtain CRL distribution points.\n         *\n         * @returns { DataArray } X509 cert CRL distribution points.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getCRLDistributionPoint(): DataArray;\n        /**\n         * Get X500 distinguished name of the issuer.\n         *\n         * @returns { X500DistinguishedName } X500 distinguished name object.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getIssuerX500DistinguishedName(): X500DistinguishedName;\n        /**\n         * Get X500 distinguished name of the subject.\n         *\n         * @returns { X500DistinguishedName } X500 distinguished name object.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getSubjectX500DistinguishedName(): X500DistinguishedName;\n        /**\n         * Get the string type data of the object.\n         *\n         * @returns { string } the string type data of the object.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        toString(): string;\n        /**\n         * Get the string type data of the object according to the encoding type.\n         *\n         * @param { EncodingType } encodingType indicates the encoding type.\n         * @returns { string } the string type data of the object.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19020003 - parameter check failed. Possible causes:\n         * <br>1. The value of encodingType is not in the EncodingType enumeration range.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 20\n         */\n        toString(encodingType: EncodingType): string;\n        /**\n         * Get the hash value of DER format data.\n         *\n         * @returns { Uint8Array } the hash value of DER format data.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        hashCode(): Uint8Array;\n        /**\n         * Get the extension der encoding data for the corresponding entity.\n         *\n         * @returns { CertExtension } the certExtension object.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getExtensionsObject(): CertExtension;\n    }\n    /**\n     * Provides to create X509 certificate object.\n     * The returned object provides the data parsing or verification capability.\n     *\n     * @param { EncodingBlob } inStream - indicate the input cert data.\n     * @param { AsyncCallback<X509Cert> } callback - the callback of createX509Cert.\n     * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 801 - this operation is not supported.\n     * @throws { BusinessError } 19020001 - memory malloc failed.\n     * @throws { BusinessError } 19030001 - crypto operation error.\n     * @syscap SystemCapability.Security.Cert\n     * @since 9\n     */\n    /**\n     * Provides to create X509 certificate object.\n     * The returned object provides the data parsing or verification capability.\n     *\n     * @param { EncodingBlob } inStream - indicate the input cert data.\n     * @param { AsyncCallback<X509Cert> } callback - the callback of createX509Cert.\n     * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 801 - this operation is not supported.\n     * @throws { BusinessError } 19020001 - memory malloc failed.\n     * @throws { BusinessError } 19030001 - crypto operation error.\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Provides to create X509 certificate object.\n     * The returned object provides the data parsing or verification capability.\n     *\n     * @param { EncodingBlob } inStream - indicate the input cert data.\n     * @param { AsyncCallback<X509Cert> } callback - the callback of createX509Cert.\n     * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 801 - this operation is not supported.\n     * @throws { BusinessError } 19020001 - memory malloc failed.\n     * @throws { BusinessError } 19030001 - crypto operation error.\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    function createX509Cert(inStream: EncodingBlob, callback: AsyncCallback<X509Cert>): void;\n    /**\n     * Provides to create X509 certificate object.\n     * The returned object provides the data parsing or verification capability.\n     *\n     * @param { EncodingBlob } inStream - indicate the input cert data.\n     * @returns { Promise<X509Cert> } the promise of X509 cert instance.\n     * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 801 - this operation is not supported.\n     * @throws { BusinessError } 19020001 - memory malloc failed.\n     * @throws { BusinessError } 19030001 - crypto operation error.\n     * @syscap SystemCapability.Security.Cert\n     * @since 9\n     */\n    /**\n     * Provides to create X509 certificate object.\n     * The returned object provides the data parsing or verification capability.\n     *\n     * @param { EncodingBlob } inStream - indicate the input cert data.\n     * @returns { Promise<X509Cert> } the promise of X509 cert instance.\n     * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 801 - this operation is not supported.\n     * @throws { BusinessError } 19020001 - memory malloc failed.\n     * @throws { BusinessError } 19030001 - crypto operation error.\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Provides to create X509 certificate object.\n     * The returned object provides the data parsing or verification capability.\n     *\n     * @param { EncodingBlob } inStream - indicate the input cert data.\n     * @returns { Promise<X509Cert> } the promise of X509 cert instance.\n     * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 801 - this operation is not supported.\n     * @throws { BusinessError } 19020001 - memory malloc failed.\n     * @throws { BusinessError } 19030001 - crypto operation error.\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    function createX509Cert(inStream: EncodingBlob): Promise<X509Cert>;\n    /**\n     * The CertExtension interface is used to parse and verify certificate extension.\n     *\n     * @typedef CertExtension\n     * @syscap SystemCapability.Security.Cert\n     * @since 10\n     */\n    /**\n     * The CertExtension interface is used to parse and verify certificate extension.\n     *\n     * @typedef CertExtension\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * The CertExtension interface is used to parse and verify certificate extension.\n     *\n     * @typedef CertExtension\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    interface CertExtension {\n        /**\n         * Get certificate extension encoded data.\n         *\n         * @returns { EncodingBlob } cert extension encoded data.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @since 10\n         */\n        /**\n         * Get certificate extension encoded data.\n         *\n         * @returns { EncodingBlob } cert extension encoded data.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Get certificate extension encoded data.\n         *\n         * @returns { EncodingBlob } cert extension encoded data.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getEncoded(): EncodingBlob;\n        /**\n         * Get certificate extension oid list.\n         *\n         * @param { ExtensionOidType } valueType\n         * @returns { DataArray } cert extension OID list value.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @since 10\n         */\n        /**\n         * Get certificate extension oid list.\n         *\n         * @param { ExtensionOidType } valueType\n         * @returns { DataArray } cert extension OID list value.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Get certificate extension oid list.\n         *\n         * @param { ExtensionOidType } valueType\n         * @returns { DataArray } cert extension OID list value.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getOidList(valueType: ExtensionOidType): DataArray;\n        /**\n         * Get certificate extension entry.\n         *\n         * @param { ExtensionEntryType } valueType\n         * @param { DataBlob } oid\n         * @returns { DataBlob } cert extension entry value.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @since 10\n         */\n        /**\n         * Get certificate extension entry.\n         *\n         * @param { ExtensionEntryType } valueType\n         * @param { DataBlob } oid\n         * @returns { DataBlob } cert extension entry value.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Get certificate extension entry.\n         *\n         * @param { ExtensionEntryType } valueType\n         * @param { DataBlob } oid\n         * @returns { DataBlob } cert extension entry value.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getEntry(valueType: ExtensionEntryType, oid: DataBlob): DataBlob;\n        /**\n         * Check whether the certificate is a CA(The keyusage contains signature usage and the value of cA in BasicConstraints is true).\n         * If not a CA, return -1, otherwise return the path length constraint in BasicConstraints.\n         * If the certificate is a CA and the path length constraint does not appear, then return -2 to indicate that there is no limit to path length.\n         *\n         * @returns { number } path length constraint.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @since 10\n         */\n        /**\n         * Check whether the certificate is a CA(The keyusage contains signature usage and the value of cA in BasicConstraints is true).\n         * If not a CA, return -1, otherwise return the path length constraint in BasicConstraints.\n         * If the certificate is a CA and the path length constraint does not appear, then return -2 to indicate that there is no limit to path length.\n         *\n         * @returns { number } path length constraint.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Check whether the certificate is a CA(The keyusage contains signature usage and the value of cA in BasicConstraints is true).\n         * If not a CA, return -1, otherwise return the path length constraint in BasicConstraints.\n         * If the certificate is a CA and the path length constraint does not appear, then return -2 to indicate that there is no limit to path length.\n         *\n         * @returns { number } path length constraint.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        checkCA(): number;\n        /**\n         * Check if exists Unsupported critical extension.\n         *\n         * @returns { boolean } true - exists unsupported critical extension, false - else.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Check if exists Unsupported critical extension.\n         *\n         * @returns { boolean } true - exists unsupported critical extension, false - else.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        hasUnsupportedCriticalExtension(): boolean;\n    }\n    /**\n     * Provides to create certificate extension object.\n     * The returned object provides the data parsing or verification capability.\n     *\n     * @param { EncodingBlob } inStream - indicate the input cert extensions data.\n     * @param { AsyncCallback<CertExtension> } callback - the callback of of certificate extension instance.\n     * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 801 - this operation is not supported.\n     * @throws { BusinessError } 19020001 - memory malloc failed.\n     * @throws { BusinessError } 19030001 - crypto operation error.\n     * @syscap SystemCapability.Security.Cert\n     * @since 10\n     */\n    /**\n     * Provides to create certificate extension object.\n     * The returned object provides the data parsing or verification capability.\n     *\n     * @param { EncodingBlob } inStream - indicate the input cert extensions data.\n     * @param { AsyncCallback<CertExtension> } callback - the callback of of certificate extension instance.\n     * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 801 - this operation is not supported.\n     * @throws { BusinessError } 19020001 - memory malloc failed.\n     * @throws { BusinessError } 19030001 - crypto operation error.\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Provides to create certificate extension object.\n     * The returned object provides the data parsing or verification capability.\n     *\n     * @param { EncodingBlob } inStream - indicate the input cert extensions data.\n     * @param { AsyncCallback<CertExtension> } callback - the callback of of certificate extension instance.\n     * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 801 - this operation is not supported.\n     * @throws { BusinessError } 19020001 - memory malloc failed.\n     * @throws { BusinessError } 19030001 - crypto operation error.\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    function createCertExtension(inStream: EncodingBlob, callback: AsyncCallback<CertExtension>): void;\n    /**\n     * Provides to create certificate extension object.\n     * The returned object provides the data parsing or verification capability.\n     *\n     * @param { EncodingBlob } inStream - indicate the input cert extensions data.\n     * @returns { Promise<CertExtension> } the promise of certificate extension instance.\n     * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 801 - this operation is not supported.\n     * @throws { BusinessError } 19020001 - memory malloc failed.\n     * @throws { BusinessError } 19030001 - crypto operation error.\n     * @syscap SystemCapability.Security.Cert\n     * @since 10\n     */\n    /**\n     * Provides to create certificate extension object.\n     * The returned object provides the data parsing or verification capability.\n     *\n     * @param { EncodingBlob } inStream - indicate the input cert extensions data.\n     * @returns { Promise<CertExtension> } the promise of certificate extension instance.\n     * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 801 - this operation is not supported.\n     * @throws { BusinessError } 19020001 - memory malloc failed.\n     * @throws { BusinessError } 19030001 - crypto operation error.\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Provides to create certificate extension object.\n     * The returned object provides the data parsing or verification capability.\n     *\n     * @param { EncodingBlob } inStream - indicate the input cert extensions data.\n     * @returns { Promise<CertExtension> } the promise of certificate extension instance.\n     * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 801 - this operation is not supported.\n     * @throws { BusinessError } 19020001 - memory malloc failed.\n     * @throws { BusinessError } 19030001 - crypto operation error.\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    function createCertExtension(inStream: EncodingBlob): Promise<CertExtension>;\n    /**\n     * Interface of X509CrlEntry.\n     *\n     * @typedef X509CrlEntry\n     * @syscap SystemCapability.Security.Cert\n     * @since 9\n     * @deprecated since 11\n     * @useinstead ohos.security.cert.X509CRLEntry\n     */\n    interface X509CrlEntry {\n        /**\n         * Returns the ASN of this CRL entry 1 der coding form, i.e. internal sequence.\n         *\n         * @param { AsyncCallback<EncodingBlob> } callback - the callback of getEncoded.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types;\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         * @deprecated since 11\n         * @useinstead ohos.security.cert.X509CRLEntry#getEncoded\n         */\n        getEncoded(callback: AsyncCallback<EncodingBlob>): void;\n        /**\n         * Returns the ASN of this CRL entry 1 der coding form, i.e. internal sequence.\n         *\n         * @returns { Promise<EncodingBlob> } the promise of crl entry blob data.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types;\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         * @deprecated since 11\n         * @useinstead ohos.security.cert.X509CRLEntry#getEncoded\n         */\n        getEncoded(): Promise<EncodingBlob>;\n        /**\n         * Get the serial number from this x509crl entry.\n         *\n         * @returns { number } serial number of crl entry.\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         * @deprecated since 11\n         * @useinstead ohos.security.cert.X509CRLEntry#getSerialNumber\n         */\n        getSerialNumber(): number;\n        /**\n         * Get the issuer of the x509 certificate described by this entry.\n         *\n         * @returns { DataBlob } DataBlob of issuer.\n         * @throws { BusinessError } 801 - this operation is not supported.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         * @deprecated since 11\n         * @useinstead ohos.security.cert.X509CRLEntry#getCertIssuer\n         */\n        getCertIssuer(): DataBlob;\n        /**\n         * Get the revocation date from x509crl entry.\n         *\n         * @returns { string } string of revocation date.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         * @deprecated since 11\n         * @useinstead ohos.security.cert.X509CRLEntry#getRevocationDate\n         */\n        getRevocationDate(): string;\n    }\n    /**\n     * Interface of X509CRLEntry.\n     *\n     * @typedef X509CRLEntry\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Interface of X509CRLEntry.\n     *\n     * @typedef X509CRLEntry\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    interface X509CRLEntry {\n        /**\n         * Returns the ASN of this CRL entry 1 der coding form, i.e. internal sequence.\n         *\n         * @param { AsyncCallback<EncodingBlob> } callback - the callback of getEncoded.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types;\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Returns the ASN of this CRL entry 1 der coding form, i.e. internal sequence.\n         *\n         * @param { AsyncCallback<EncodingBlob> } callback - the callback of getEncoded.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types;\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getEncoded(callback: AsyncCallback<EncodingBlob>): void;\n        /**\n         * Returns the ASN of this CRL entry 1 der coding form, i.e. internal sequence.\n         *\n         * @returns { Promise<EncodingBlob> } the promise of CRL entry blob data.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types;\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Returns the ASN of this CRL entry 1 der coding form, i.e. internal sequence.\n         *\n         * @returns { Promise<EncodingBlob> } the promise of CRL entry blob data.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types;\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getEncoded(): Promise<EncodingBlob>;\n        /**\n         * Get the serial number from this x509CRL entry.\n         *\n         * @returns { bigint } serial number of CRL entry.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Get the serial number from this x509CRL entry.\n         *\n         * @returns { bigint } serial number of CRL entry.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getSerialNumber(): bigint;\n        /**\n         * Get the issuer of the x509 certificate described by this entry.\n         *\n         * @returns { DataBlob } DataBlob of issuer.\n         * @throws { BusinessError } 801 - this operation is not supported.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Get the issuer of the x509 certificate described by this entry.\n         *\n         * @returns { DataBlob } DataBlob of issuer.\n         * @throws { BusinessError } 801 - this operation is not supported.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getCertIssuer(): DataBlob;\n        /**\n         * Get the issuer name of the x509 certificate described by this entry according to the encoding type.\n         *\n         * @param { EncodingType } encodingType indicates the encoding type.\n         * @returns { string } issuer name.\n         * @throws { BusinessError } 801 - this operation is not supported.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19020003 - parameter check failed. Possible causes:\n         * <br>1. The value of encodingType is not in the EncodingType enumeration range.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 20\n         */\n        getCertIssuer(encodingType: EncodingType): string;\n        /**\n         * Get the revocation date from x509CRL entry.\n         *\n         * @returns { string } string of revocation date.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Get the revocation date from x509CRL entry.\n         *\n         * @returns { string } string of revocation date.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getRevocationDate(): string;\n        /**\n         * Get Extensions of CRL Entry.\n         *\n         * @returns { DataBlob } DataBlob of extensions\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Get Extensions of CRL Entry.\n         *\n         * @returns { DataBlob } DataBlob of extensions\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getExtensions(): DataBlob;\n        /**\n         * Check if CRL Entry has extension .\n         *\n         * @returns { boolean } true - CRL Entry has extension,  false - else.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Check if CRL Entry has extension .\n         *\n         * @returns { boolean } true - CRL Entry has extension,  false - else.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        hasExtensions(): boolean;\n        /**\n         *  Get X500 distinguished name of the issuer.\n         *\n         * @returns { X500DistinguishedName } X500 distinguished name object.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getCertIssuerX500DistinguishedName(): X500DistinguishedName;\n        /**\n         *  Get the string type data of the object.\n         *\n         * @returns { string } the string type data of the object.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        toString(): string;\n        /**\n         *  Get the hash value of DER format data.\n         *\n         * @returns { Uint8Array } the hash value of DER format data.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        hashCode(): Uint8Array;\n        /**\n         *  Get the extension der encoding data for the corresponding entity.\n         *\n         * @returns { CertExtension } the certExtension object.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getExtensionsObject(): CertExtension;\n    }\n    /**\n     * Interface of X509Crl.\n     *\n     * @typedef X509Crl\n     * @syscap SystemCapability.Security.Cert\n     * @since 9\n     * @deprecated since 11\n     * @useinstead ohos.security.cert.X509CRL\n     */\n    interface X509Crl {\n        /**\n         * Check if the given certificate is on this CRL.\n         *\n         * @param { X509Cert } cert - input cert data.\n         * @returns { boolean } result of Check cert is revoked or not.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         * @deprecated since 11\n         * @useinstead ohos.security.cert.X509CRL#isRevoked\n         */\n        isRevoked(cert: X509Cert): boolean;\n        /**\n         * Returns the type of this CRL.\n         *\n         * @returns { string } string of crl type.\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         * @deprecated since 11\n         * @useinstead ohos.security.cert.X509CRL#getType\n         */\n        getType(): string;\n        /**\n         * Get the der coding format.\n         *\n         * @param { AsyncCallback<EncodingBlob> } callback - the callback of getEncoded.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types;\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         * @deprecated since 11\n         * @useinstead ohos.security.cert.X509CRL#getEncoded\n         */\n        getEncoded(callback: AsyncCallback<EncodingBlob>): void;\n        /**\n         * Get the der coding format.\n         *\n         * @returns { Promise<EncodingBlob> } the promise of crl blob data.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types;\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         * @deprecated since 11\n         * @useinstead ohos.security.cert.X509CRL#getEncoded\n         */\n        getEncoded(): Promise<EncodingBlob>;\n        /**\n         * Use the public key to verify the signature of CRL.\n         *\n         * @param { cryptoFramework.PubKey } key - input public Key.\n         * @param { AsyncCallback<void> } callback - the callback of getEncoded.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         * @deprecated since 11\n         * @useinstead ohos.security.cert.X509CRL#verify\n         */\n        verify(key: cryptoFramework.PubKey, callback: AsyncCallback<void>): void;\n        /**\n         * Use the public key to verify the signature of CRL.\n         *\n         * @param { cryptoFramework.PubKey } key - input public Key.\n         * @returns { Promise<void> } the promise returned by the function.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         * @deprecated since 11\n         * @useinstead ohos.security.cert.X509CRL#verify\n         */\n        verify(key: cryptoFramework.PubKey): Promise<void>;\n        /**\n         * Get version number from CRL.\n         *\n         * @returns { number } version of crl.\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         * @deprecated since 11\n         * @useinstead ohos.security.cert.X509CRL#getVersion\n         */\n        getVersion(): number;\n        /**\n         * Get the issuer name from CRL. Issuer means the entity that signs and publishes the CRL.\n         *\n         * @returns { DataBlob } issuer name of crl.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         * @deprecated since 11\n         * @useinstead ohos.security.cert.X509CRL#getIssuerName\n         */\n        getIssuerName(): DataBlob;\n        /**\n         * Get lastUpdate value from CRL.\n         *\n         * @returns { string } last update of crl.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         * @deprecated since 11\n         * @useinstead ohos.security.cert.X509CRL#getLastUpdate\n         */\n        getLastUpdate(): string;\n        /**\n         * Get nextUpdate value from CRL.\n         *\n         * @returns { string } next update of crl.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         * @deprecated since 11\n         * @useinstead ohos.security.cert.X509CRL#getNextUpdate\n         */\n        getNextUpdate(): string;\n        /**\n         * This method can be used to find CRL entries in specified CRLs.\n         *\n         * @param { number } serialNumber - serial number of crl.\n         * @returns { X509CrlEntry } next update of crl.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         * @deprecated since 11\n         * @useinstead ohos.security.cert.X509CRL#getRevokedCert\n         */\n        getRevokedCert(serialNumber: number): X509CrlEntry;\n        /**\n         * This method can be used to find CRL entries in specified cert.\n         *\n         * @param { X509Cert } cert - cert of x509.\n         * @returns { X509CrlEntry } X509CrlEntry instance.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         * @deprecated since 11\n         * @useinstead ohos.security.cert.X509CRL#getRevokedCertWithCert\n         */\n        getRevokedCertWithCert(cert: X509Cert): X509CrlEntry;\n        /**\n         * Get all entries in this CRL.\n         *\n         * @param { AsyncCallback<Array<X509CrlEntry>> } callback - the callback of getRevokedCerts.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types;\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         * @deprecated since 11\n         * @useinstead ohos.security.cert.X509CRL#getRevokedCerts\n         */\n        getRevokedCerts(callback: AsyncCallback<Array<X509CrlEntry>>): void;\n        /**\n         * Get all entries in this CRL.\n         *\n         * @returns { Promise<Array<X509CrlEntry>> } the promise of X509CrlEntry instance.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types;\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         * @deprecated since 11\n         * @useinstead ohos.security.cert.X509CRL#getRevokedCerts\n         */\n        getRevokedCerts(): Promise<Array<X509CrlEntry>>;\n        /**\n         * Get the CRL information encoded by Der from this CRL.\n         *\n         * @returns { DataBlob } DataBlob of tbs info.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         * @deprecated since 11\n         * @useinstead ohos.security.cert.X509CRL#getTBSInfo\n         */\n        getTbsInfo(): DataBlob;\n        /**\n         * Get signature value from CRL.\n         *\n         * @returns { DataBlob } DataBlob of signature.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         * @deprecated since 11\n         * @useinstead ohos.security.cert.X509CRL#getSignature\n         */\n        getSignature(): DataBlob;\n        /**\n         * Get the signature algorithm name of the CRL signature algorithm.\n         *\n         * @returns { string } string of signature algorithm name.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         * @deprecated since 11\n         * @useinstead ohos.security.cert.X509CRL#getSignatureAlgName\n         */\n        getSignatureAlgName(): string;\n        /**\n         * Get the signature algorithm oid string from CRL.\n         *\n         * @returns { string } string of signature algorithm oid.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         * @deprecated since 11\n         * @useinstead ohos.security.cert.X509CRL#getSignatureAlgOid\n         */\n        getSignatureAlgOid(): string;\n        /**\n         * Get the der encoded signature algorithm parameters from the CRL signature algorithm.\n         *\n         * @returns { DataBlob } DataBlob of signature algorithm params.\n         * @throws { BusinessError } 801 - this operation is not supported.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         * @deprecated since 11\n         * @useinstead ohos.security.cert.X509CRL#getSignatureAlgParams\n         */\n        getSignatureAlgParams(): DataBlob;\n    }\n    /**\n     * Provides to create X509 CRL object.\n     * The returned object provides the data parsing or verification capability.\n     *\n     * @param { EncodingBlob } inStream - indicates the input CRL data.\n     * @param { AsyncCallback<X509Crl> } callback - the callback of createX509Crl to return x509 CRL instance.\n     * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 801 - this operation is not supported.\n     * @throws { BusinessError } 19020001 - memory malloc failed.\n     * @syscap SystemCapability.Security.Cert\n     * @since 9\n     * @deprecated since 11\n     * @useinstead ohos.security.cert#createX509CRL\n     */\n    function createX509Crl(inStream: EncodingBlob, callback: AsyncCallback<X509Crl>): void;\n    /**\n     * Provides to create X509 CRL object.\n     * The returned object provides the data parsing or verification capability.\n     *\n     * @param { EncodingBlob } inStream - indicates the input CRL data.\n     * @returns { Promise<X509Crl> } the promise of x509 CRL instance.\n     * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 801 - this operation is not supported.\n     * @throws { BusinessError } 19020001 - memory malloc failed.\n     * @syscap SystemCapability.Security.Cert\n     * @since 9\n     * @deprecated since 11\n     * @useinstead ohos.security.cert#createX509CRL\n     */\n    function createX509Crl(inStream: EncodingBlob): Promise<X509Crl>;\n    /**\n     * Interface of X509CRL.\n     *\n     * @typedef X509CRL\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Interface of X509CRL.\n     *\n     * @typedef X509CRL\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    interface X509CRL {\n        /**\n         * Check if the given certificate is on this CRL.\n         *\n         * @param { X509Cert } cert - input cert data.\n         * @returns { boolean } result of Check cert is revoked or not.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Check if the given certificate is on this CRL.\n         *\n         * @param { X509Cert } cert - input cert data.\n         * @returns { boolean } result of Check cert is revoked or not.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        isRevoked(cert: X509Cert): boolean;\n        /**\n         * Returns the type of this CRL.\n         *\n         * @returns { string } string of CRL type.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Returns the type of this CRL.\n         *\n         * @returns { string } string of CRL type.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getType(): string;\n        /**\n         * Get the der coding format.\n         *\n         * @param { AsyncCallback<EncodingBlob> } callback - the callback of getEncoded.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types;\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Get the der coding format.\n         *\n         * @param { AsyncCallback<EncodingBlob> } callback - the callback of getEncoded.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types;\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getEncoded(callback: AsyncCallback<EncodingBlob>): void;\n        /**\n         * Get the der coding format.\n         *\n         * @returns { Promise<EncodingBlob> } the promise of CRL blob data.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types;\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Get the der coding format.\n         *\n         * @returns { Promise<EncodingBlob> } the promise of CRL blob data.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types;\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getEncoded(): Promise<EncodingBlob>;\n        /**\n         * Use the public key to verify the signature of CRL.\n         *\n         * @param { cryptoFramework.PubKey } key - input public Key.\n         * @param { AsyncCallback<void> } callback - the callback of getEncoded.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Use the public key to verify the signature of CRL.\n         *\n         * @param { cryptoFramework.PubKey } key - input public Key.\n         * @param { AsyncCallback<void> } callback - the callback of getEncoded.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        verify(key: cryptoFramework.PubKey, callback: AsyncCallback<void>): void;\n        /**\n         * Use the public key to verify the signature of CRL.\n         *\n         * @param { cryptoFramework.PubKey } key - input public Key.\n         * @returns { Promise<void> } the promise returned by the function.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Use the public key to verify the signature of CRL.\n         *\n         * @param { cryptoFramework.PubKey } key - input public Key.\n         * @returns { Promise<void> } the promise returned by the function.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        verify(key: cryptoFramework.PubKey): Promise<void>;\n        /**\n         * Get version number from CRL.\n         *\n         * @returns { number } version of CRL.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Get version number from CRL.\n         *\n         * @returns { number } version of CRL.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getVersion(): number;\n        /**\n         * Get the issuer name from CRL. Issuer means the entity that signs and publishes the CRL.\n         *\n         * @returns { DataBlob } issuer name of CRL.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Get the issuer name from CRL. Issuer means the entity that signs and publishes the CRL.\n         *\n         * @returns { DataBlob } issuer name of CRL.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getIssuerName(): DataBlob;\n        /**\n         * Get the issuer name from CRL according to the encoding type.\n         *\n         * @param { EncodingType } encodingType indicates the encoding type.\n         * @returns { string } issuer name of CRL.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19020003 - parameter check failed. Possible causes:\n         * <br>1. The value of encodingType is not in the EncodingType enumeration range.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 20\n         */\n        getIssuerName(encodingType: EncodingType): string;\n        /**\n         * Get lastUpdate value from CRL.\n         *\n         * @returns { string } last update of CRL.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Get lastUpdate value from CRL.\n         *\n         * @returns { string } last update of CRL.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getLastUpdate(): string;\n        /**\n         * Get nextUpdate value from CRL.\n         *\n         * @returns { string } next update of CRL.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Get nextUpdate value from CRL.\n         *\n         * @returns { string } next update of CRL.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getNextUpdate(): string;\n        /**\n         * This method can be used to find CRL entries in specified CRLs.\n         *\n         * @param { bigint } serialNumber - serial number of CRL.\n         * @returns { X509CRLEntry } next update of CRL.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * This method can be used to find CRL entries in specified CRLs.\n         *\n         * @param { bigint } serialNumber - serial number of CRL.\n         * @returns { X509CRLEntry } next update of CRL.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getRevokedCert(serialNumber: bigint): X509CRLEntry;\n        /**\n         * This method can be used to find CRL entries in specified cert.\n         *\n         * @param { X509Cert } cert - cert of x509.\n         * @returns { X509CRLEntry } X509CRLEntry instance.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * This method can be used to find CRL entries in specified cert.\n         *\n         * @param { X509Cert } cert - cert of x509.\n         * @returns { X509CRLEntry } X509CRLEntry instance.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getRevokedCertWithCert(cert: X509Cert): X509CRLEntry;\n        /**\n         * Get all entries in this CRL.\n         *\n         * @param { AsyncCallback<Array<X509CRLEntry>> } callback - the callback of getRevokedCerts.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types;\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Get all entries in this CRL.\n         *\n         * @param { AsyncCallback<Array<X509CRLEntry>> } callback - the callback of getRevokedCerts.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types;\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getRevokedCerts(callback: AsyncCallback<Array<X509CRLEntry>>): void;\n        /**\n         * Get all entries in this CRL.\n         *\n         * @returns { Promise<Array<X509CRLEntry>> } the promise of X509CRLEntry instance.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types;\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Get all entries in this CRL.\n         *\n         * @returns { Promise<Array<X509CRLEntry>> } the promise of X509CRLEntry instance.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types;\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getRevokedCerts(): Promise<Array<X509CRLEntry>>;\n        /**\n         * Get the CRL information encoded by Der from this CRL.\n         *\n         * @returns { DataBlob } DataBlob of tbs info.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Get the CRL information encoded by Der from this CRL.\n         *\n         * @returns { DataBlob } DataBlob of tbs info.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getTBSInfo(): DataBlob;\n        /**\n         * Get signature value from CRL.\n         *\n         * @returns { DataBlob } DataBlob of signature.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Get signature value from CRL.\n         *\n         * @returns { DataBlob } DataBlob of signature.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getSignature(): DataBlob;\n        /**\n         * Get the signature algorithm name of the CRL signature algorithm.\n         *\n         * @returns { string } string of signature algorithm name.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Get the signature algorithm name of the CRL signature algorithm.\n         *\n         * @returns { string } string of signature algorithm name.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getSignatureAlgName(): string;\n        /**\n         * Get the signature algorithm oid string from CRL.\n         *\n         * @returns { string } string of signature algorithm oid.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Get the signature algorithm oid string from CRL.\n         *\n         * @returns { string } string of signature algorithm oid.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getSignatureAlgOid(): string;\n        /**\n         * Get the der encoded signature algorithm parameters from the CRL signature algorithm.\n         *\n         * @returns { DataBlob } DataBlob of signature algorithm params.\n         * @throws { BusinessError } 801 - this operation is not supported.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Get the der encoded signature algorithm parameters from the CRL signature algorithm.\n         *\n         * @returns { DataBlob } DataBlob of signature algorithm params.\n         * @throws { BusinessError } 801 - this operation is not supported.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getSignatureAlgParams(): DataBlob;\n        /**\n         * Get Extensions of CRL Entry.\n         *\n         * @returns { DataBlob } DataBlob of extensions\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Get Extensions of CRL Entry.\n         *\n         * @returns { DataBlob } DataBlob of extensions\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getExtensions(): DataBlob;\n        /**\n         * Check if the X509 CRL match the parameters.\n         *\n         * @param { X509CRLMatchParameters } param - indicate the X509CRLMatchParameters object.\n         * @returns { boolean } true - match X509CRL, false - not match.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Check if the X509 CRL match the parameters.\n         *\n         * @param { X509CRLMatchParameters } param - indicate the X509CRLMatchParameters object.\n         * @returns { boolean } true - match X509CRL, false - not match.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        match(param: X509CRLMatchParameters): boolean;\n        /**\n         * Get X500 distinguished name of the issuer.\n         *\n         * @returns { X500DistinguishedName } X500 distinguished name object.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getIssuerX500DistinguishedName(): X500DistinguishedName;\n        /**\n         * Get the string type data of the object.\n         *\n         * @returns { string } the string type data of the object.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        toString(): string;\n        /**\n         * Get the string type data of the object according to the encoding type.\n         *\n         * @param { EncodingType } encodingType indicates the encoding type.\n         * @returns { string } the string type data of the object.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19020003 - parameter check failed. Possible causes:\n         * <br>1. The value of encodingType is not in the EncodingType enumeration range.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 20\n         */\n        toString(encodingType: EncodingType): string;\n        /**\n         * Get the hash value of DER format data.\n         *\n         * @returns { Uint8Array } the hash value of DER format data.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        hashCode(): Uint8Array;\n        /**\n         * Get the extension der encoding data for the corresponding entity.\n         *\n         * @returns { CertExtension } the certExtension object.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getExtensionsObject(): CertExtension;\n    }\n    /**\n     * Provides to create X509 CRL object.\n     * The returned object provides the data parsing or verification capability.\n     *\n     * @param { EncodingBlob } inStream - indicates the input CRL data.\n     * @param { AsyncCallback<X509CRL> } callback - the callback of createX509CRL to return x509 CRL instance.\n     * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 801 - this operation is not supported.\n     * @throws { BusinessError } 19020001 - memory malloc failed.\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Provides to create X509 CRL object.\n     * The returned object provides the data parsing or verification capability.\n     *\n     * @param { EncodingBlob } inStream - indicates the input CRL data.\n     * @param { AsyncCallback<X509CRL> } callback - the callback of createX509CRL to return x509 CRL instance.\n     * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 801 - this operation is not supported.\n     * @throws { BusinessError } 19020001 - memory malloc failed.\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    function createX509CRL(inStream: EncodingBlob, callback: AsyncCallback<X509CRL>): void;\n    /**\n     * Provides to create X509 CRL object.\n     * The returned object provides the data parsing or verification capability.\n     *\n     * @param { EncodingBlob } inStream - indicates the input CRL data.\n     * @returns { Promise<X509CRL> } the promise of x509 CRL instance.\n     * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 801 - this operation is not supported.\n     * @throws { BusinessError } 19020001 - memory malloc failed.\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Provides to create X509 CRL object.\n     * The returned object provides the data parsing or verification capability.\n     *\n     * @param { EncodingBlob } inStream - indicates the input CRL data.\n     * @returns { Promise<X509CRL> } the promise of x509 CRL instance.\n     * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 801 - this operation is not supported.\n     * @throws { BusinessError } 19020001 - memory malloc failed.\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    function createX509CRL(inStream: EncodingBlob): Promise<X509CRL>;\n    /**\n     * Certification chain validator.\n     *\n     * @typedef CertChainValidator\n     * @syscap SystemCapability.Security.Cert\n     * @since 9\n     */\n    /**\n     * Certification chain validator.\n     *\n     * @typedef CertChainValidator\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Certification chain validator.\n     *\n     * @typedef CertChainValidator\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    interface CertChainValidator {\n        /**\n         * Validate the cert chain.\n         *\n         * @param { CertChainData } certChain - indicate the cert chain validator data.\n         * @param { AsyncCallback<void> } callback - the callback of validate.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @throws { BusinessError } 19030002 - the certificate signature verification failed.\n         * @throws { BusinessError } 19030003 - the certificate has not taken effect.\n         * @throws { BusinessError } 19030004 - the certificate has expired.\n         * @throws { BusinessError } 19030005 - failed to obtain the certificate issuer.\n         * @throws { BusinessError } 19030006 - the key cannot be used for signing a certificate.\n         * @throws { BusinessError } 19030007 - the key cannot be used for digital signature.\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         */\n        /**\n         * Validate the cert chain.\n         *\n         * @param { CertChainData } certChain - indicate the cert chain validator data.\n         * @param { AsyncCallback<void> } callback - the callback of validate.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @throws { BusinessError } 19030002 - the certificate signature verification failed.\n         * @throws { BusinessError } 19030003 - the certificate has not taken effect.\n         * @throws { BusinessError } 19030004 - the certificate has expired.\n         * @throws { BusinessError } 19030005 - failed to obtain the certificate issuer.\n         * @throws { BusinessError } 19030006 - the key cannot be used for signing a certificate.\n         * @throws { BusinessError } 19030007 - the key cannot be used for digital signature.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Validate the cert chain.\n         *\n         * @param { CertChainData } certChain - indicate the cert chain validator data.\n         * @param { AsyncCallback<void> } callback - the callback of validate.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @throws { BusinessError } 19030002 - the certificate signature verification failed.\n         * @throws { BusinessError } 19030003 - the certificate has not taken effect.\n         * @throws { BusinessError } 19030004 - the certificate has expired.\n         * @throws { BusinessError } 19030005 - failed to obtain the certificate issuer.\n         * @throws { BusinessError } 19030006 - the key cannot be used for signing a certificate.\n         * @throws { BusinessError } 19030007 - the key cannot be used for digital signature.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        validate(certChain: CertChainData, callback: AsyncCallback<void>): void;\n        /**\n         * Validate the cert chain.\n         *\n         * @param { CertChainData } certChain - indicate the cert chain validator data.\n         * @returns { Promise<void> } the promise returned by the function.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @throws { BusinessError } 19030002 - the certificate signature verification failed.\n         * @throws { BusinessError } 19030003 - the certificate has not taken effect.\n         * @throws { BusinessError } 19030004 - the certificate has expired.\n         * @throws { BusinessError } 19030005 - failed to obtain the certificate issuer.\n         * @throws { BusinessError } 19030006 - the key cannot be used for signing a certificate.\n         * @throws { BusinessError } 19030007 - the key cannot be used for digital signature.\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         */\n        /**\n         * Validate the cert chain.\n         *\n         * @param { CertChainData } certChain - indicate the cert chain validator data.\n         * @returns { Promise<void> } the promise returned by the function.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @throws { BusinessError } 19030002 - the certificate signature verification failed.\n         * @throws { BusinessError } 19030003 - the certificate has not taken effect.\n         * @throws { BusinessError } 19030004 - the certificate has expired.\n         * @throws { BusinessError } 19030005 - failed to obtain the certificate issuer.\n         * @throws { BusinessError } 19030006 - the key cannot be used for signing a certificate.\n         * @throws { BusinessError } 19030007 - the key cannot be used for digital signature.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Validate the cert chain.\n         *\n         * @param { CertChainData } certChain - indicate the cert chain validator data.\n         * @returns { Promise<void> } the promise returned by the function.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @throws { BusinessError } 19030002 - the certificate signature verification failed.\n         * @throws { BusinessError } 19030003 - the certificate has not taken effect.\n         * @throws { BusinessError } 19030004 - the certificate has expired.\n         * @throws { BusinessError } 19030005 - failed to obtain the certificate issuer.\n         * @throws { BusinessError } 19030006 - the key cannot be used for signing a certificate.\n         * @throws { BusinessError } 19030007 - the key cannot be used for digital signature.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        validate(certChain: CertChainData): Promise<void>;\n        /**\n         * The cert chain related algorithm.\n         *\n         * @type { string }\n         * @readonly\n         * @syscap SystemCapability.Security.Cert\n         * @since 9\n         */\n        /**\n         * The cert chain related algorithm.\n         *\n         * @type { string }\n         * @readonly\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * The cert chain related algorithm.\n         *\n         * @type { string }\n         * @readonly\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        readonly algorithm: string;\n    }\n    /**\n     * Provides to create certificate chain object. The returned object provides the verification capability.\n     *\n     * @param { string } algorithm - indicates the cert chain validator type.\n     * @returns { CertChainValidator } the cert chain validator instance.\n     * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 801 - this operation is not supported.\n     * @throws { BusinessError } 19020001 - memory malloc failed.\n     * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n     * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n     * @throws { BusinessError } 19030001 - crypto operation error.\n     * @syscap SystemCapability.Security.Cert\n     * @since 9\n     */\n    /**\n     * Provides to create certificate chain object. The returned object provides the verification capability.\n     *\n     * @param { string } algorithm - indicates the cert chain validator type.\n     * @returns { CertChainValidator } the cert chain validator instance.\n     * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 801 - this operation is not supported.\n     * @throws { BusinessError } 19020001 - memory malloc failed.\n     * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n     * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n     * @throws { BusinessError } 19030001 - crypto operation error.\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Provides to create certificate chain object. The returned object provides the verification capability.\n     *\n     * @param { string } algorithm - indicates the cert chain validator type.\n     * @returns { CertChainValidator } the cert chain validator instance.\n     * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 801 - this operation is not supported.\n     * @throws { BusinessError } 19020001 - memory malloc failed.\n     * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n     * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n     * @throws { BusinessError } 19030001 - crypto operation error.\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    function createCertChainValidator(algorithm: string): CertChainValidator;\n    /**\n     * Enum for general name use type.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    enum GeneralNameType {\n        /**\n         * Indicates the name used for other.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        GENERAL_NAME_TYPE_OTHER_NAME = 0,\n        /**\n         * Indicates the name used for RFC822.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        GENERAL_NAME_TYPE_RFC822_NAME = 1,\n        /**\n         * Indicates the name used for DNS.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        GENERAL_NAME_TYPE_DNS_NAME = 2,\n        /**\n         * Indicates the name used for X.400 address.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        GENERAL_NAME_TYPE_X400_ADDRESS = 3,\n        /**\n         * Indicates the name used for X.500 directory.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        GENERAL_NAME_TYPE_DIRECTORY_NAME = 4,\n        /**\n         * Indicates the name used for EDI.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        GENERAL_NAME_TYPE_EDI_PARTY_NAME = 5,\n        /**\n         * Indicates the name used for URI.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        GENERAL_NAME_TYPE_UNIFORM_RESOURCE_ID = 6,\n        /**\n         * Indicates the name used for IP address.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        GENERAL_NAME_TYPE_IP_ADDRESS = 7,\n        /**\n         * Indicates the name used for registered ID.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        GENERAL_NAME_TYPE_REGISTERED_ID = 8\n    }\n    /**\n     * GeneralName object\n     *\n     * @typedef GeneralName\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    interface GeneralName {\n        /**\n         * The general name type.\n         *\n         * @type { GeneralNameType }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        type: GeneralNameType;\n        /**\n         * The general name in DER format\n         *\n         * @type { ?Uint8Array }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        name?: Uint8Array;\n    }\n    /**\n     * X509 Cert match parameters\n     *\n     * @typedef X509CertMatchParameters\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * X509 Cert match parameters\n     *\n     * @typedef X509CertMatchParameters\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    interface X509CertMatchParameters {\n        /**\n         * To match SubjectAlternativeNames of cert extensions:\n         * [Rule]\n         * null : Do not match.\n         * NOT null : match after [matchAllSubjectAltNames]\n         *\n         * @type { ?Array<GeneralName> } SubjectAlternativeNames is in DER encoding format\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        subjectAlternativeNames?: Array<GeneralName>;\n        /**\n         * Indicate if match all subject alternate name:\n         * [Rule]\n         * true : match if [subjectAlternativeNames] is equal with all of [SubjectAlternativeNames of cert extensions]\n         * false : match if [subjectAlternativeNames] is only equal with one of [SubjectAlternativeNames of cert extensions]\n         *\n         * @type { ?boolean }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        matchAllSubjectAltNames?: boolean;\n        /**\n         * To match AuthorityKeyIdentifier of cert extensions in DER encoding:\n         * [Rule]\n         * null : Do not match.\n         * NOT null : match if it is equal with [AuthorityKeyIdentifier of cert extensions] in DER encoding\n         *\n         * @type { ?Uint8Array } the key identifier\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        authorityKeyIdentifier?: Uint8Array;\n        /**\n         * To match BaseConstraints.pathLenConstraint of cert extensions:\n         * [Rule]\n         * >=0 : The certificate must contain BaseConstraints extension, and the cA field in the extension takes.\n         * -2 : The cA field in the BaseConstraints extension of the certificate must be set to false or the certificate does not contain BaseConstraints extension.\n         * other : Do not match.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        minPathLenConstraint?: number;\n        /**\n         * To match X509Cert:\n         * [Rule]\n         * null : Do not match.\n         * NOT null : match if x509Cert.getEncoding is equal.\n         *\n         * @type { ?X509Cert }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * To match X509Cert:\n         * [Rule]\n         * null : Do not match.\n         * NOT null : match if x509Cert.getEncoding is equal.\n         *\n         * @type { ?X509Cert }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        x509Cert?: X509Cert;\n        /**\n         * To match the validDate of cert:\n         * [Rule]\n         * null : Do not match.\n         * NOT null : match if [notBefore of cert] <= [validDate] <= [notAfter of cert].\n         *\n         * @type { ?string } format is YYMMDDHHMMSSZ or YYYYMMDDHHMMSSZ.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * To match the validDate of cert:\n         * [Rule]\n         * null : Do not match.\n         * NOT null : match if [notBefore of cert] <= [validDate] <= [notAfter of cert].\n         *\n         * @type { ?string } format is YYMMDDHHMMSSZ or YYYYMMDDHHMMSSZ.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        validDate?: string;\n        /**\n         * To match the issuer of cert:\n         * [Rule]\n         * null : Do not match.\n         * NOT null : match if it is equal with [issuer of cert] in DER encoding.\n         *\n         * @type { ?Uint8Array }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * To match the issuer of cert:\n         * [Rule]\n         * null : Do not match.\n         * NOT null : match if it is equal with [issuer of cert] in DER encoding.\n         *\n         * @type { ?Uint8Array }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        issuer?: Uint8Array;\n        /**\n         * To match the ExtendedKeyUsage of cert extensions:\n         * [Rule]\n         * null : Do not match.\n         * NOT null : match ok if [ExtendedKeyUsage of cert extensions] is null, or\n         *    [ExtendedKeyUsage of cert extensions] include [extendedKeyUsage].\n         *\n         * @type { ?Array<string> } array of oIDs.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        extendedKeyUsage?: Array<string>;\n        /**\n         * The X509Certificate must have subject and subject alternative names that meet the specified name constraints:\n         * [Rule]\n         * null : Do not match.\n         * NOT null : match ok if [NameConstraints of cert extensions] is null, or\n         *    [NameConstraints of cert extensions] include [nameConstraints].\n         *\n         * @type { ?Uint8Array } ASN.1 DER encoded form of nameConstraints\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        nameConstraints?: Uint8Array;\n        /**\n         * The X509Certificate must have subject and subject alternative names that meet the specified name constraints:\n         * [Rule]\n         * null : Do not match.\n         * NOT null : match ok if [Certificate Policies of cert extensions] is null, or\n         *    [Certificate Policies of cert extensions] include [certPolicy].\n         *\n         * @type { ?Array<string> } array of oIDs.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        certPolicy?: Array<string>;\n        /**\n         * The specified date must fall within the private key validity period for the X509Certificate:\n         * [Rule]\n         * null : Do not match.\n         * NOT null : match ok if [Private Key Valid Period of cert extensions] is null, or\n         *    [privateKeyValid] fall in [Private Key Valid Period of cert extensions].\n         *\n         * @type { ?string } format is YYMMDDHHMMSSZ or YYYYMMDDHHMMSSZ\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        privateKeyValid?: string;\n        /**\n         * To match the KeyUsage of cert extensions:\n         * [Rule]\n         * null : Do not match.\n         * NOT null : match ok if [KeyUsage of cert extensions] is null, or\n         *    [KeyUsage of cert extensions] include [keyUsage].\n         *\n         * @type { ?Array<boolean> }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * To match the KeyUsage of cert extensions:\n         * [Rule]\n         * null : Do not match.\n         * NOT null : match ok if [KeyUsage of cert extensions] is null, or\n         *    [KeyUsage of cert extensions] include [keyUsage].\n         *\n         * @type { ?Array<boolean> }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        keyUsage?: Array<boolean>;\n        /**\n         * The specified serial number must match the serialnumber for the X509Certificate:\n         * [Rule]\n         * null : Do not match.\n         * NOT null : match ok if it is equal with [serialNumber of cert].\n         *\n         * @type { ?bigint }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * The specified serial number must match the serialnumber for the X509Certificate:\n         * [Rule]\n         * null : Do not match.\n         * NOT null : match ok if it is equal with [serialNumber of cert].\n         *\n         * @type { ?bigint }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        serialNumber?: bigint;\n        /**\n         * The specified value must match the subject for the X509Certificate:\n         * [Rule]\n         * null : Do not match.\n         * NOT null : match ok if it is equal with [subject of cert].\n         *\n         * @type { ?Uint8Array } subject in DER encoding format\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * The specified value must match the subject for the X509Certificate:\n         * [Rule]\n         * null : Do not match.\n         * NOT null : match ok if it is equal with [subject of cert].\n         *\n         * @type { ?Uint8Array } subject in DER encoding format\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        subject?: Uint8Array;\n        /**\n         * The specified value must match the Subject Key Identifier extension for the X509Certificate:\n         * [Rule]\n         * null : Do not match.\n         * NOT null : match ok if it is equal with [Subject Key Identifier of cert extensions].\n         *\n         * @type { ?Uint8Array } subjectKeyIdentifier in DER encoding format ??\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        subjectKeyIdentifier?: Uint8Array;\n        /**\n         * The specified value must match the publicKey for the X509Certificate:\n         * [Rule]\n         * null : Do not match.\n         * NOT null : match ok if it is equal with [publicKey of cert].\n         *\n         * @type { ?DataBlob } publicKey\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * The specified value must match the publicKey for the X509Certificate:\n         * [Rule]\n         * null : Do not match.\n         * NOT null : match ok if it is equal with [publicKey of cert].\n         *\n         * @type { ?DataBlob } publicKey\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        publicKey?: DataBlob;\n        /**\n         * The specified value must match the publicKey for the X509Certificate:\n         * [Rule]\n         * null : Do not match.\n         * NOT null : match ok if it is equal with [publicKey of cert].\n         *\n         * @type { ?string } the object identifier (OID) of the signature algorithm to check.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * The specified value must match the publicKey for the X509Certificate:\n         * [Rule]\n         * null : Do not match.\n         * NOT null : match ok if it is equal with [publicKey of cert].\n         *\n         * @type { ?string } the object identifier (OID) of the signature algorithm to check.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        publicKeyAlgID?: string;\n    }\n    /**\n     * X509 CRL match parameters\n     *\n     * @typedef X509CRLMatchParameters\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * X509 CRL match parameters\n     *\n     * @typedef X509CRLMatchParameters\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    interface X509CRLMatchParameters {\n        /**\n         * To match the issuer of cert:\n         * [Rule]\n         * null : Do not match.\n         * NOT null : match if it is equal with [issuer of cert] in DER encoding.\n         *\n         * @type { ?Array<Uint8Array> }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * To match the issuer of cert:\n         * [Rule]\n         * null : Do not match.\n         * NOT null : match if it is equal with [issuer of cert] in DER encoding.\n         *\n         * @type { ?Array<Uint8Array> }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        issuer?: Array<Uint8Array>;\n        /**\n         * To match X509Cert:\n         * [Rule]\n         * null : Do not match.\n         * NOT null : match if x509Cert.getEncoding is equal.\n         *\n         * @type { ?X509Cert }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * To match X509Cert:\n         * [Rule]\n         * null : Do not match.\n         * NOT null : match if x509Cert.getEncoding is equal.\n         *\n         * @type { ?X509Cert }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        x509Cert?: X509Cert;\n        /**\n         * To match updateDateTime of CRL:\n         * [Rule]\n         * null : Do not verify.\n         * NOT null : verify if [thisUpdate in CRL] <= updateDateTime <= [nextUpdate in CRL]\n         *\n         * @type { ?string }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        updateDateTime?: string;\n        /**\n         * To match the maximum of CRL number extension:\n         * [Rule]\n         * null : Do not verify.\n         * NOT null : verify if [CRL number extension] <= maxCRL.\n         *\n         * @type { ?bigint }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        maxCRL?: bigint;\n        /**\n         * To match the minimum of CRL number extension:\n         * [Rule]\n         * null : Do not verify.\n         * NOT null : verify if [CRL number extension] >= minCRL.\n         *\n         * @type { ?bigint }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        minCRL?: bigint;\n    }\n    /**\n     * The certificate and CRL collection object.\n     *\n     * @typedef CertCRLCollection\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * The certificate and CRL collection object.\n     *\n     * @typedef CertCRLCollection\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    interface CertCRLCollection {\n        /**\n         * return all Array<X509Cert> which match X509CertMatchParameters\n         *\n         * @param { X509CertMatchParameters } param - indicate the X509CertMatchParameters object.\n         * @returns { Promise<Array<X509Cert>> }\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * return all Array<X509Cert> which match X509CertMatchParameters\n         *\n         * @param { X509CertMatchParameters } param - indicate the X509CertMatchParameters object.\n         * @returns { Promise<Array<X509Cert>> }\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        selectCerts(param: X509CertMatchParameters): Promise<Array<X509Cert>>;\n        /**\n         * return the X509 Cert which match X509CertMatchParameters\n         *\n         * @param { X509CertMatchParameters } param - indicate the X509CertMatchParameters object.\n         * @param { AsyncCallback<Array<X509Cert>> } callback - the callback of select cert.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * return the X509 Cert which match X509CertMatchParameters\n         *\n         * @param { X509CertMatchParameters } param - indicate the X509CertMatchParameters object.\n         * @param { AsyncCallback<Array<X509Cert>> } callback - the callback of select cert.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        selectCerts(param: X509CertMatchParameters, callback: AsyncCallback<Array<X509Cert>>): void;\n        /**\n         * return all X509 CRL which match X509CRLMatchParameters\n         *\n         * @param { X509CRLMatchParameters } param - indicate the X509CRLMatchParameters object.\n         * @returns { Promise<Array<X509CRL>> }\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * return all X509 CRL which match X509CRLMatchParameters\n         *\n         * @param { X509CRLMatchParameters } param - indicate the X509CRLMatchParameters object.\n         * @returns { Promise<Array<X509CRL>> }\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        selectCRLs(param: X509CRLMatchParameters): Promise<Array<X509CRL>>;\n        /**\n         * return all X509 CRL which match X509CRLMatchParameters\n         *\n         * @param { X509CRLMatchParameters } param - indicate the X509CRLMatchParameters object.\n         * @param { AsyncCallback<Array<X509CRL>> } callback - the callback of select CRL.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * return all X509 CRL which match X509CRLMatchParameters\n         *\n         * @param { X509CRLMatchParameters } param - indicate the X509CRLMatchParameters object.\n         * @param { AsyncCallback<Array<X509CRL>> } callback - the callback of select CRL.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        selectCRLs(param: X509CRLMatchParameters, callback: AsyncCallback<Array<X509CRL>>): void;\n    }\n    /**\n     * create object CertCRLCollection\n     *\n     * @param { Array<X509Cert> } certs - array of X509Cert.\n     * @param { Array<X509CRL> } [options] crls - array of X509CRL.\n     * @returns { CertCRLCollection }\n     * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 19020001 - memory malloc failed.\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * create object CertCRLCollection\n     *\n     * @param { Array<X509Cert> } certs - array of X509Cert.\n     * @param { Array<X509CRL> } [crls] - array of X509CRL.\n     * @returns { CertCRLCollection }\n     * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 19020001 - memory malloc failed.\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    function createCertCRLCollection(certs: Array<X509Cert>, crls?: Array<X509CRL>): CertCRLCollection;\n    /**\n     * X509 Certification chain object.\n     *\n     * @typedef X509CertChain\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * X509 Certification chain object.\n     *\n     * @typedef X509CertChain\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    interface X509CertChain {\n        /**\n         * Get the X509 certificate list.\n         *\n         * @returns { Array<X509Cert> } the X509 certificate list.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Get the X509 certificate list.\n         *\n         * @returns { Array<X509Cert> } the X509 certificate list.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getCertList(): Array<X509Cert>;\n        /**\n         * Validate the cert chain with validate parameters.\n         *\n         * @param { CertChainValidationParameters } param - indicate the cert chain Validate parameters.\n         * @returns { Promise<CertChainValidationResult> } the promise returned by the function.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @throws { BusinessError } 19030002 - the certificate signature verification failed.\n         * @throws { BusinessError } 19030003 - the certificate has not taken effect.\n         * @throws { BusinessError } 19030004 - the certificate has expired.\n         * @throws { BusinessError } 19030005 - failed to obtain the certificate issuer.\n         * @throws { BusinessError } 19030006 - the key cannot be used for signing a certificate.\n         * @throws { BusinessError } 19030007 - the key cannot be used for digital signature.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Validate the cert chain with validate parameters.\n         *\n         * @param { CertChainValidationParameters } param - indicate the cert chain Validate parameters.\n         * @returns { Promise<CertChainValidationResult> } the promise returned by the function.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @throws { BusinessError } 19030002 - the certificate signature verification failed.\n         * @throws { BusinessError } 19030003 - the certificate has not taken effect.\n         * @throws { BusinessError } 19030004 - the certificate has expired.\n         * @throws { BusinessError } 19030005 - failed to obtain the certificate issuer.\n         * @throws { BusinessError } 19030006 - the key cannot be used for signing a certificate.\n         * @throws { BusinessError } 19030007 - the key cannot be used for digital signature.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        validate(param: CertChainValidationParameters): Promise<CertChainValidationResult>;\n        /**\n         * Validate the cert chain with validate parameters.\n         *\n         * @param { CertChainValidationParameters } param - indicate the cert chain validate parameters.\n         * @param { AsyncCallback<CertChainValidationResult> } callback - indicate the cert chain validate result.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @throws { BusinessError } 19030002 - the certificate signature verification failed.\n         * @throws { BusinessError } 19030003 - the certificate has not taken effect.\n         * @throws { BusinessError } 19030004 - the certificate has expired.\n         * @throws { BusinessError } 19030005 - failed to obtain the certificate issuer.\n         * @throws { BusinessError } 19030006 - the key cannot be used for signing a certificate.\n         * @throws { BusinessError } 19030007 - the key cannot be used for digital signature.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Validate the cert chain with validate parameters.\n         *\n         * @param { CertChainValidationParameters } param - indicate the cert chain validate parameters.\n         * @param { AsyncCallback<CertChainValidationResult> } callback - indicate the cert chain validate result.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @throws { BusinessError } 19030002 - the certificate signature verification failed.\n         * @throws { BusinessError } 19030003 - the certificate has not taken effect.\n         * @throws { BusinessError } 19030004 - the certificate has expired.\n         * @throws { BusinessError } 19030005 - failed to obtain the certificate issuer.\n         * @throws { BusinessError } 19030006 - the key cannot be used for signing a certificate.\n         * @throws { BusinessError } 19030007 - the key cannot be used for digital signature.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        validate(param: CertChainValidationParameters, callback: AsyncCallback<CertChainValidationResult>): void;\n        /**\n         * Get the string type data of the object.\n         *\n         * @returns { string } the string type data of the object.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        toString(): string;\n        /**\n         * Get the hash value of DER format data.\n         *\n         * @returns { Uint8Array } the hash value of DER format data.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        hashCode(): Uint8Array;\n    }\n    /**\n     * Provides to create X509 certificate chain object.\n     * The returned object provides the data parsing or verification capability.\n     *\n     * @param { EncodingBlob } inStream - indicate the input cert data.\n     * @returns { Promise<X509CertChain> }\n     * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 19020001 - memory malloc failed.\n     * @throws { BusinessError } 19030001 - crypto operation error.\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Provides to create X509 certificate chain object.\n     * The returned object provides the data parsing or verification capability.\n     *\n     * @param { EncodingBlob } inStream - indicate the input cert data.\n     * @returns { Promise<X509CertChain> }\n     * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 19020001 - memory malloc failed.\n     * @throws { BusinessError } 19030001 - crypto operation error.\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    function createX509CertChain(inStream: EncodingBlob): Promise<X509CertChain>;\n    /**\n     * Provides to create X509 certificate chain object.\n     * The returned object provides the data parsing or verification capability.\n     *\n     * @param { EncodingBlob } inStream - indicate the input cert data.\n     * @param { AsyncCallback<X509CertChain> } callback\n     * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 19020001 - memory malloc failed.\n     * @throws { BusinessError } 19030001 - crypto operation error.\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Provides to create X509 certificate chain object.\n     * The returned object provides the data parsing or verification capability.\n     *\n     * @param { EncodingBlob } inStream - indicate the input cert data.\n     * @param { AsyncCallback<X509CertChain> } callback\n     * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 19020001 - memory malloc failed.\n     * @throws { BusinessError } 19030001 - crypto operation error.\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    function createX509CertChain(inStream: EncodingBlob, callback: AsyncCallback<X509CertChain>): void;\n    /**\n     * Create certificate chain object with certificate array.\n     *\n     * @param { Array<X509Cert> } certs - indicate the certificate array.\n     * @returns { X509CertChain } the certificate chain object.\n     * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 19020001 - memory malloc failed.\n     * @throws { BusinessError } 19030001 - crypto operation error.\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Create certificate chain object with certificate array.\n     *\n     * @param { Array<X509Cert> } certs - indicate the certificate array.\n     * @returns { X509CertChain } the certificate chain object.\n     * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 19020001 - memory malloc failed.\n     * @throws { BusinessError } 19030001 - crypto operation error.\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    function createX509CertChain(certs: Array<X509Cert>): X509CertChain;\n    /**\n     * Create and validate a certificate chain with the build parameters.\n     *\n     * @param { CertChainBuildParameters } param - indicate the certificate chain build parameters.\n     * @returns { Promise<CertChainBuildResult> } the promise returned by the function.\n     * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 19020001 - memory malloc failed.\n     * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n     * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n     * @throws { BusinessError } 19030001 - crypto operation error.\n     * @throws { BusinessError } 19030002 - the certificate signature verification failed.\n     * @throws { BusinessError } 19030003 - the certificate has not taken effect.\n     * @throws { BusinessError } 19030004 - the certificate has expired.\n     * @throws { BusinessError } 19030005 - failed to obtain the certificate issuer.\n     * @throws { BusinessError } 19030006 - the key cannot be used for signing a certificate.\n     * @throws { BusinessError } 19030007 - the key cannot be used for digital signature.\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    function buildX509CertChain(param: CertChainBuildParameters): Promise<CertChainBuildResult>;\n    /**\n     * The encoding base format.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    enum EncodingBaseFormat {\n        /**\n         * PEM format.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        PEM = 0,\n        /**\n         * DER format.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        DER = 1\n    }\n    /**\n     * PKCS12 data.\n     *\n     * @typedef Pkcs12Data\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    interface Pkcs12Data {\n        /**\n         * The private key.\n         *\n         * @type { ?(string | Uint8Array) }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        privateKey?: string | Uint8Array;\n        /**\n         * The certificate corresponding to the private key.\n         *\n         * @type { ?X509Cert }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        cert?: X509Cert;\n        /**\n         * The other certificates.\n         *\n         * @type { ?Array<X509Cert> }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        otherCerts?: Array<X509Cert>;\n    }\n    /**\n     * PKCS12 parsing config.\n     *\n     * @typedef Pkcs12ParsingConfig\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    interface Pkcs12ParsingConfig {\n        /**\n         * The password of the PKCS12.\n         *\n         * @type { string }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        password: string;\n        /**\n         * Whether to get the private key.\n         *\n         * @type { ?boolean }\n         * @default true\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        needsPrivateKey?: boolean;\n        /**\n         * The output format of the private key.\n         *\n         * @type { ?EncodingBaseFormat }\n         * @default EncodingBaseFormat.PEM\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        privateKeyFormat?: EncodingBaseFormat;\n        /**\n         * Whether to get the certificate corresponding to the private key.\n         *\n         * @type { ?boolean }\n         * @default true\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        needsCert?: boolean;\n        /**\n         * Whether to get other certificates.\n         *\n         * @type { ?boolean }\n         * @default false\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        needsOtherCerts?: boolean;\n    }\n    /**\n     * Parse PKCS12.\n     *\n     * @param { Uint8Array } data - the PKCS12 data.\n     * @param { Pkcs12ParsingConfig } config - the configuration for parsing PKCS12.\n     * @returns { Pkcs12Data } the Pkcs12Data.\n     * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 19020001 - memory malloc failed.\n     * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n     * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n     * @throws { BusinessError } 19030001 - crypto operation error.\n     * @throws { BusinessError } 19030008 - maybe wrong password.\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    function parsePkcs12(data: Uint8Array, config: Pkcs12ParsingConfig): Pkcs12Data;\n    /**\n     * Get trust anchor array from specified P12.\n     *\n     * @param { Uint8Array } keystore - the file path of the P12.\n     * @param { string } pwd - the password of the P12.\n     * @returns { Promise<Array<X509TrustAnchor>> } the promise returned by the function.\n     * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 19020001 - memory malloc failed.\n     * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n     * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n     * @throws { BusinessError } 19030001 - crypto operation error.\n     * @throws { BusinessError } 19030002 - the certificate signature verification failed.\n     * @throws { BusinessError } 19030003 - the certificate has not taken effect.\n     * @throws { BusinessError } 19030004 - the certificate has expired.\n     * @throws { BusinessError } 19030005 - failed to obtain the certificate issuer.\n     * @throws { BusinessError } 19030006 - the key cannot be used for signing a certificate.\n     * @throws { BusinessError } 19030007 - the key cannot be used for digital signature.\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    function createTrustAnchorsWithKeyStore(keystore: Uint8Array, pwd: string): Promise<Array<X509TrustAnchor>>;\n    /**\n     * Create X500DistinguishedName object with the name in string format.\n     *\n     * @param { string } nameStr - the string format of the Name type defined by X509.\n     * @returns { Promise<X500DistinguishedName> } the promise returned by the function.\n     * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 19020001 - memory malloc failed.\n     * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n     * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n     * @throws { BusinessError } 19030001 - crypto operation error.\n     * @throws { BusinessError } 19030002 - the certificate signature verification failed.\n     * @throws { BusinessError } 19030003 - the certificate has not taken effect.\n     * @throws { BusinessError } 19030004 - the certificate has expired.\n     * @throws { BusinessError } 19030005 - failed to obtain the certificate issuer.\n     * @throws { BusinessError } 19030006 - the key cannot be used for signing a certificate.\n     * @throws { BusinessError } 19030007 - the key cannot be used for digital signature.\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    function createX500DistinguishedName(nameStr: string): Promise<X500DistinguishedName>;\n    /**\n     * Create X500DistinguishedName object with the name in DER format.\n     *\n     * @param { Uint8Array } nameDer - the DER format of the Name type defined by X509.\n     * @returns { Promise<X500DistinguishedName> } the promise returned by the function.\n     * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 19020001 - memory malloc failed.\n     * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n     * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n     * @throws { BusinessError } 19030001 - crypto operation error.\n     * @throws { BusinessError } 19030002 - the certificate signature verification failed.\n     * @throws { BusinessError } 19030003 - the certificate has not taken effect.\n     * @throws { BusinessError } 19030004 - the certificate has expired.\n     * @throws { BusinessError } 19030005 - failed to obtain the certificate issuer.\n     * @throws { BusinessError } 19030006 - the key cannot be used for signing a certificate.\n     * @throws { BusinessError } 19030007 - the key cannot be used for digital signature.\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    function createX500DistinguishedName(nameDer: Uint8Array): Promise<X500DistinguishedName>;\n    /**\n     * Provides the x500 distinguished name type.\n     *\n     * @typedef X500DistinguishedName\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    interface X500DistinguishedName {\n        /**\n         * Get distinguished name string in ASCII encoding type.\n         *\n         * @returns { string } distinguished name string.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getName(): string;\n        /**\n         * Get distinguished name string according to the encoding type.\n         *\n         * @param { EncodingType } encodingType - the specified encoding type.\n         * @returns { string } distinguished name string.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19020003 - parameter check failed. Possible causes:\n         * <br>1. The value of encodingType is not in the EncodingType enumeration range.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 20\n         */\n        getName(encodingType: EncodingType): string;\n        /**\n         * Get distinguished name string by type.\n         *\n         * @param { string } type - the specified type name.\n         * @returns { Array<string> } distinguished name string.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getName(type: string): Array<string>;\n        /**\n         * Get distinguished name in der coding format.\n         *\n         * @returns { EncodingBlob } distinguished name encoded data.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getEncoded(): EncodingBlob;\n    }\n    /**\n     * Provides the x509 trust anchor type.\n     *\n     * @typedef X509TrustAnchor\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Provides the x509 trust anchor type.\n     *\n     * @typedef X509TrustAnchor\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    interface X509TrustAnchor {\n        /**\n         * The trust CA cert.\n         *\n         * @type { ?X509Cert }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * The trust CA cert.\n         *\n         * @type { ?X509Cert }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        CACert?: X509Cert;\n        /**\n         * The trust CA public key in DER format.\n         *\n         * @type { ?Uint8Array }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * The trust CA public key in DER format.\n         *\n         * @type { ?Uint8Array }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        CAPubKey?: Uint8Array;\n        /**\n         * The trust CA subject in DER format.\n         *\n         * @type { ?Uint8Array }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * The trust CA subject in DER format.\n         *\n         * @type { ?Uint8Array }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        CASubject?: Uint8Array;\n        /**\n         * The name constraints in DER format.\n         *\n         * @type { ?Uint8Array }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        nameConstraints?: Uint8Array;\n    }\n    /**\n     * Enum for revocation check option.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    enum RevocationCheckOptions {\n        /**\n         * Indicates priority to use OCSP for verification.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        REVOCATION_CHECK_OPTION_PREFER_OCSP = 0,\n        /**\n         * Indicates support for verifying revocation status by accessing the network to obtain CRL or OCSP responses.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        REVOCATION_CHECK_OPTION_ACCESS_NETWORK,\n        /**\n         * Indicates when the 'REVOCATION_CHECK_OPTION_ACCESS_NETWORK' option is turned on, it is effective.\n         * If the preferred verification method is unable to verify the certificate status due to network reasons,\n         * an alternative solution will be used for verification.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        REVOCATION_CHECK_OPTION_FALLBACK_NO_PREFER,\n        /**\n         * Indicates when the 'REVOCATION_CHECK_OPTION_ACCESS_NETWORK' option is turned on, it is effective.\n         * If both the CRL and OCSP responses obtained online cannot verify the certificate status due to network reasons,\n         * the locally set CRL and OCSP responses will be used for verification.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        REVOCATION_CHECK_OPTION_FALLBACK_LOCAL\n    }\n    /**\n     * Enum for validation policy type.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    enum ValidationPolicyType {\n        /**\n         * Indicates not need to verify the sslHostname field in the certificate.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        VALIDATION_POLICY_TYPE_X509 = 0,\n        /**\n         * Indicates need to verify the sslHostname field in the certificate.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        VALIDATION_POLICY_TYPE_SSL\n    }\n    /**\n     * Enum for validation keyusage type.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    enum KeyUsageType {\n        /**\n         * Indicates the certificate public key can be used for digital signature operations.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        KEYUSAGE_DIGITAL_SIGNATURE = 0,\n        /**\n         * Indicates certificate public key can be used for non repudiation operations, preventing the signer from denying their signature.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        KEYUSAGE_NON_REPUDIATION,\n        /**\n         * Indicates certificate public key can be used for key encryption operations, for encrypting symmetric keys, etc.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        KEYUSAGE_KEY_ENCIPHERMENT,\n        /**\n         * Indicates certificate public key can be used for data encryption operations, to encrypt data.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        KEYUSAGE_DATA_ENCIPHERMENT,\n        /**\n         * Indicates certificate public key can be used for key negotiation operations, to negotiate shared keys.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        KEYUSAGE_KEY_AGREEMENT,\n        /**\n         * Indicates certificate public key can be used for certificate signing operations.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        KEYUSAGE_KEY_CERT_SIGN,\n        /**\n         * Indicates certificate public key can be used for signing operations on certificate revocation lists (CRLs).\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        KEYUSAGE_CRL_SIGN,\n        /**\n         * Indicates the key can only be used for encryption operations and cannot be used for decryption operations.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        KEYUSAGE_ENCIPHER_ONLY,\n        /**\n         * Indicates the key can only be used for decryption operations and cannot be used for encryption operations.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        KEYUSAGE_DECIPHER_ONLY\n    }\n    /**\n     * Provides the certificate chain validate revocation parameters.\n     *\n     * @typedef RevocationCheckParameter\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    interface RevocationCheckParameter {\n        /**\n         * The additional field for sending OCSP requests.\n         *\n         * @type { ?Array<Uint8Array> }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        ocspRequestExtension?: Array<Uint8Array>;\n        /**\n         * The server URL address for sending requests to OCSP.\n         *\n         * @type { ?string }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        ocspResponderURI?: string;\n        /**\n         * The signing certificate for verifying OCSP response signatures.\n         *\n         * @type { ?X509Cert }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        ocspResponderCert?: X509Cert;\n        /**\n         * The OCSP response message returned by an OCSP server.\n         *\n         * @type { ?Uint8Array }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        ocspResponses?: Uint8Array;\n        /**\n         * The URL address for downloading the CRL list.\n         *\n         * @type { ?string }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        crlDownloadURI?: string;\n        /**\n         * The certificate revocation status verification option.\n         *\n         * @type { ?Array<RevocationCheckOptions> }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        options?: Array<RevocationCheckOptions>;\n        /**\n         * The digest used to generate the ocsp cert id.\n         *\n         * @type { ?string }\n         * @default SHA256\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        ocspDigest?: string;\n    }\n    /**\n     * Provides the certificate chain validate parameters type.\n     *\n     * @typedef CertChainValidationParameters\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Provides the certificate chain validate parameters type.\n     *\n     * @typedef CertChainValidationParameters\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    interface CertChainValidationParameters {\n        /**\n         * The datetime to verify the certificate chain validity period.\n         *\n         * @type { ?string }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * The datetime to verify the certificate chain validity period.\n         *\n         * @type { ?string }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        date?: string;\n        /**\n         * The trust ca certificates to verify the certificate chain.\n         *\n         * @type { Array<X509TrustAnchor> }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * The trust ca certificates to verify the certificate chain.\n         *\n         * @type { Array<X509TrustAnchor> }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        trustAnchors: Array<X509TrustAnchor>;\n        /**\n         * The cert and CRL list to build cert chain and verify the certificate chain revocation state.\n         *\n         * @type { ?Array<CertCRLCollection> }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * The cert and CRL list to build cert chain and verify the certificate chain revocation state.\n         *\n         * @type { ?Array<CertCRLCollection> }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        certCRLs?: Array<CertCRLCollection>;\n        /**\n         * The revocation parameters to verify the certificate chain revocation status.\n         *\n         * @type { ?RevocationCheckParameter }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        revocationCheckParam?: RevocationCheckParameter;\n        /**\n         * The policy to verify the certificate chain validity.\n         *\n         * @type { ?ValidationPolicyType }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        policy?: ValidationPolicyType;\n        /**\n         * The sslHostname to verify the certificate chain validity.\n         *\n         * @type { ?string }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        sslHostname?: string;\n        /**\n         * The keyUsage to verify the certificate chain validity.\n         *\n         * @type { ?Array<KeyUsageType> }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        keyUsage?: Array<KeyUsageType>;\n    }\n    /**\n     * Certification chain validate result.\n     *\n     * @typedef CertChainValidationResult\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Certification chain validate result.\n     *\n     * @typedef CertChainValidationResult\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    interface CertChainValidationResult {\n        /**\n         * The cert chain trust anchor.\n         *\n         * @type { X509TrustAnchor }\n         * @readonly\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * The cert chain trust anchor.\n         *\n         * @type { X509TrustAnchor }\n         * @readonly\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        readonly trustAnchor: X509TrustAnchor;\n        /**\n         * The target certificate.\n         *\n         * @type { X509Cert }\n         * @readonly\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * The target certificate.\n         *\n         * @type { X509Cert }\n         * @readonly\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        readonly entityCert: X509Cert;\n    }\n    /**\n     * Provides the certificate chain build parameters type.\n     *\n     * @typedef CertChainBuildParameters\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    interface CertChainBuildParameters {\n        /**\n         * The certificate match parameters to selects certificate from the certificate collection.\n         *\n         * @type { X509CertMatchParameters }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        certMatchParameters: X509CertMatchParameters;\n        /**\n         * The maximum length of the certificate chain to be built.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        maxLength?: number;\n        /**\n         * The CertChain validation parameters.\n         *\n         * @type { CertChainValidationParameters }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        validationParameters: CertChainValidationParameters;\n    }\n    /**\n     * Certification chain build result.\n     *\n     * @typedef CertChainBuildResult\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    interface CertChainBuildResult {\n        /**\n         * The certificate chain of build result.\n         *\n         * @type { X509CertChain }\n         * @readonly\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        readonly certChain: X509CertChain;\n        /**\n         * The certificate chain validation result.\n         *\n         * @type { CertChainValidationResult }\n         * @readonly\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        readonly validationResult: CertChainValidationResult;\n    }\n    /**\n     * Enum for CMS content type.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    enum CmsContentType {\n        /**\n         * Signed data.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        SIGNED_DATA = 0\n    }\n    /**\n     * Enum for CMS content data format.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    enum CmsContentDataFormat {\n        /**\n         * Binary format.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        BINARY = 0,\n        /**\n         * Text format.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        TEXT = 1\n    }\n    /**\n     * Enum for CMS format.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    enum CmsFormat {\n        /**\n         * PEM format.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        PEM = 0,\n        /**\n         * DER format.\n         *\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        DER = 1\n    }\n    /**\n     * Private key info.\n     *\n     * @typedef PrivateKeyInfo\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    interface PrivateKeyInfo {\n        /**\n         * The unencrypted or encrypted private key, in PEM or DER format.\n         *\n         * @type { string | Uint8Array }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        key: string | Uint8Array;\n        /**\n         * The password of the private key, if the private key is encrypted.\n         *\n         * @type { ?string }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        password?: string;\n    }\n    /**\n     * Configuration options for CMS signer.\n     *\n     * @typedef CmsSignerConfig\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    interface CmsSignerConfig {\n        /**\n         * Digest algorithm name, such as \"SHA384\".\n         *\n         * @type { string }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        mdName: string;\n        /**\n         * Whether to add the certificate.\n         *\n         * @type { ?boolean }\n         * @default true\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        addCert?: boolean;\n        /**\n         * Whether to add the signature attributes.\n         *\n         * @type { ?boolean }\n         * @default true\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        addAttr?: boolean;\n        /**\n         * Whether to add the smime capibilities to the signature attributes.\n         *\n         * @type { ?boolean }\n         * @default true\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        addSmimeCapAttr?: boolean;\n    }\n    /**\n     * CMS generator options.\n     *\n     * @typedef CmsGeneratorOptions\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    interface CmsGeneratorOptions {\n        /**\n         * The format of the content data.\n         *\n         * @type { ?CmsContentDataFormat }\n         * @default CmsContentDataFormat.BINARY\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        contentDataFormat?: CmsContentDataFormat;\n        /**\n         * The output format of the CMS final data.\n         *\n         * @type { ?CmsFormat }\n         * @default CmsFormat.DER\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        outFormat?: CmsFormat;\n        /**\n         * Whether the CMS final data does not contain original content data.\n         *\n         * @type { ?boolean }\n         * @default false\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        isDetached?: boolean;\n    }\n    /**\n     * Provides the interface for generating CMS.\n     *\n     * @typedef CmsGenerator\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    interface CmsGenerator {\n        /**\n         * Used to add the signer info.\n         *\n         * @param { X509Cert } cert - the signer certificate.\n         * @param { PrivateKeyInfo } keyInfo - the private key info of the signer certificate.\n         * @param { CmsSignerConfig } config - the configuration for CMS signer.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @throws { BusinessError } 19030008 - maybe wrong password.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        addSigner(cert: X509Cert, keyInfo: PrivateKeyInfo, config: CmsSignerConfig): void;\n        /**\n         * Used to add the certificate, such as the issuer certificate of the signer certificate.\n         *\n         * @param { X509Cert } cert - the certificate.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        addCert(cert: X509Cert): void;\n        /**\n         * Used to obtain the CMS final data, such as CMS signed data.\n         *\n         * @param { Uint8Array } data - the content data for CMS operation.\n         * @param { CmsGeneratorOptions } options - the configuration options for CMS operation.\n         * @returns { Promise<Uint8Array | string> } the promise returned by the function.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        doFinal(data: Uint8Array, options?: CmsGeneratorOptions): Promise<Uint8Array | string>;\n        /**\n         * Used to obtain the CMS final data, such as CMS signed data.\n         *\n         * @param { Uint8Array } data - the content data for CMS operation.\n         * @param { CmsGeneratorOptions } options - the configuration options for CMS operation.\n         * @returns { Uint8Array | string } the CMS final data.\n         * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 19020001 - memory malloc failed.\n         * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n         * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n         * @throws { BusinessError } 19030001 - crypto operation error.\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        doFinalSync(data: Uint8Array, options?: CmsGeneratorOptions): Uint8Array | string;\n    }\n    /**\n     * Used to create CmsGenerator.\n     *\n     * @param { CmsContentType } contentType - the CMS content type.\n     * @returns { CmsGenerator } the CmsGenerator.\n     * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 19020001 - memory malloc failed.\n     * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n     * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n     * @throws { BusinessError } 19030001 - crypto operation error.\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    function createCmsGenerator(contentType: CmsContentType): CmsGenerator;\n    /**\n     * Additional information about the subject of the certificate.\n     *\n     * @typedef CsrAttribute\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    interface CsrAttribute {\n        /**\n         * Attribute type.\n         *\n         * @type { string }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        type: string;\n        /**\n         * Attribute value.\n         *\n         * @type { string }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        value: string;\n    }\n    /**\n     * Configuration for generating a certificate signing request.\n     *\n     * @typedef CsrGenerationConfig\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    interface CsrGenerationConfig {\n        /**\n         * The subject.\n         *\n         * @type { X500DistinguishedName }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        subject: X500DistinguishedName;\n        /**\n         * The message digest name, such as \"SHA384\".\n         *\n         * @type { string }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        mdName: string;\n        /**\n         * The attributes.\n         *\n         * @type { ?Array<CsrAttribute> }\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        attributes?: Array<CsrAttribute>;\n        /**\n         * The output format of CSR.\n         *\n         * @type { ?EncodingBaseFormat }\n         * @default EncodingBaseFormat.PEM\n         * @syscap SystemCapability.Security.Cert\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        outFormat?: EncodingBaseFormat;\n    }\n    /**\n     * Used to generate certificate signing request.\n     *\n     * @param { PrivateKeyInfo } keyInfo - the private key info.\n     * @param { CsrGenerationConfig } config - the configuration for generating CSR.\n     * @returns { string | Uint8Array } the CSR in PEM or DER format.\n     * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 19020001 - memory malloc failed.\n     * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed;\n     * <br>2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C.\n     * @throws { BusinessError } 19030001 - crypto operation error.\n     * @throws { BusinessError } 19030008 - maybe wrong password.\n     * @syscap SystemCapability.Security.Cert\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    function generateCsr(keyInfo: PrivateKeyInfo, config: CsrGenerationConfig): string | Uint8Array;\n}\nexport default cert;\n",
}
export default FILE;